From 952748a86c4ddf1d7e47b358a64904c35bacd4aa Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 17 Aug 2018 00:15:05 +0800 Subject: *update --- src/lua/graphics/luaopen_Canvas.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/lua/graphics/luaopen_Canvas.cpp') 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& ref = checkCanvas(L); - luax_pushnumber(L, (*ref).getWidth()); + luax_pushnumber(L, ref->getWidth()); return 1; } static int l_getHeight(lua_State* L) { Ref& ref = checkCanvas(L); - luax_pushnumber(L, (*ref).getHeight()); + luax_pushnumber(L, ref->getHeight()); return 1; } static int l_getSize(lua_State* L) { Ref& 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& 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; } -- cgit v1.1-26-g67d0