From 066e5987c515dfc34537d73ca9d2a81ddd1f9e1b Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 21 Oct 2018 13:37:27 +0800 Subject: =?UTF-8?q?*=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lua/modules/graphics/texture.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lua/modules/graphics/texture.cpp') diff --git a/src/lua/modules/graphics/texture.cpp b/src/lua/modules/graphics/texture.cpp index 63ab5f2..15e258c 100644 --- a/src/lua/modules/graphics/texture.cpp +++ b/src/lua/modules/graphics/texture.cpp @@ -32,12 +32,12 @@ namespace JinEngine return 1; } - static int l_setAnchor(lua_State* L) + static int l_setOrigin(lua_State* L) { TextureRef ref = checkTexture(L); int x = luax_checknumber(L, 2); int y = luax_checknumber(L, 3); - ref->setAnchor(x, y); + ref->setOrigin(x, y); return 0; } @@ -61,7 +61,7 @@ namespace JinEngine { "getWidth", l_getWidth }, { "getHeight", l_getHeight }, { "getSize", l_getSize }, - { "setAnchor", l_setAnchor }, + { "setOrigin", l_setOrigin }, { 0, 0 } }; -- cgit v1.1-26-g67d0