diff options
author | chai <chaifix@163.com> | 2018-10-21 13:37:27 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-10-21 13:37:27 +0800 |
commit | 066e5987c515dfc34537d73ca9d2a81ddd1f9e1b (patch) | |
tree | ec45fe523daa4f9e8a30db0a045a0eb9cee84822 /src/lua/modules/graphics/canvas.cpp | |
parent | 3292019e55dd02a96420e72bad88711fd36ef249 (diff) |
*注释
Diffstat (limited to 'src/lua/modules/graphics/canvas.cpp')
-rw-r--r-- | src/lua/modules/graphics/canvas.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lua/modules/graphics/canvas.cpp b/src/lua/modules/graphics/canvas.cpp index 79e7282..b64dc16 100644 --- a/src/lua/modules/graphics/canvas.cpp +++ b/src/lua/modules/graphics/canvas.cpp @@ -40,12 +40,12 @@ namespace JinEngine return 2; } - static int l_setAnchor(lua_State* L) + static int l_setOrigin(lua_State* L) { CanvasRef ref = checkCanvas(L); int x = luax_checknumber(L, 1); int y = luax_checknumber(L, 2); - 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 } }; |