diff options
Diffstat (limited to 'src/lua/graphics/luaopen_Canvas.cpp')
-rw-r--r-- | src/lua/graphics/luaopen_Canvas.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lua/graphics/luaopen_Canvas.cpp b/src/lua/graphics/luaopen_Canvas.cpp index d686a88..ca1270c 100644 --- a/src/lua/graphics/luaopen_Canvas.cpp +++ b/src/lua/graphics/luaopen_Canvas.cpp @@ -18,22 +18,22 @@ namespace lua static int l_getWidth(lua_State* L) { Ref<Canvas>& ref = checkCanvas(L); - luax_pushnumber(L, (*ref).getWidth()); + luax_pushnumber(L, ref->getWidth()); return 1; } static int l_getHeight(lua_State* L) { Ref<Canvas>& ref = checkCanvas(L); - luax_pushnumber(L, (*ref).getHeight()); + luax_pushnumber(L, ref->getHeight()); return 1; } static int l_getSize(lua_State* L) { Ref<Canvas>& ref = checkCanvas(L); - luax_pushnumber(L, (*ref).getWidth()); - luax_pushnumber(L, (*ref).getHeight()); + luax_pushnumber(L, ref->getWidth()); + luax_pushnumber(L, ref->getHeight()); return 2; } @@ -42,7 +42,7 @@ namespace lua Ref<Canvas>& ref = checkCanvas(L); int x = luax_checknumber(L, 1); int y = luax_checknumber(L, 2); - (*ref).setAnchor(x, y); + ref->setAnchor(x, y); return 0; } |