From 6cb616689535c340b0b4f441c12ef8eb1ee42cb0 Mon Sep 17 00:00:00 2001 From: chai Date: Sat, 22 Dec 2018 10:58:06 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9vector=E8=AE=BF=E9=97=AE=E6=96=B9?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libjin/graphics/je_sprite.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libjin/graphics/je_sprite.cpp') diff --git a/src/libjin/graphics/je_sprite.cpp b/src/libjin/graphics/je_sprite.cpp index 789fd26..bddb353 100644 --- a/src/libjin/graphics/je_sprite.cpp +++ b/src/libjin/graphics/je_sprite.cpp @@ -49,15 +49,15 @@ namespace JinEngine void Sprite::render(float x, float y, float sx, float sy, float r) const { if (mGraphic != nullptr) - mGraphic->render(mQuad, x, y, sx, sy, r, mOrigin.x, mOrigin.y); + mGraphic->render(mQuad, x, y, sx, sy, r, mOrigin.x(), mOrigin.y()); } void Sprite::setOrigin(Origin origin) { int l = 0, r = 0, t = 0, b = 0; Vector2 size = getSize(); - r = size.w; - b = size.h; + r = size.w(); + b = size.h(); Vector2* org = const_cast*>(&mOrigin); switch (origin) { -- cgit v1.1-26-g67d0