diff options
author | chai <chaifix@163.com> | 2018-12-04 10:13:03 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-12-04 10:13:03 +0800 |
commit | 8cd03a53878b9d67eb4b13fb546dbd989d8217e2 (patch) | |
tree | d27371aa2d702705dd86d3c2d8a6c4bd8bd7ec96 /src/lua/modules/graphics/je_lua_canvas.cpp | |
parent | 7c0da0c1181ecf333aa784d4cce09bc160dfe908 (diff) |
*proxy->lua object
Diffstat (limited to 'src/lua/modules/graphics/je_lua_canvas.cpp')
-rw-r--r-- | src/lua/modules/graphics/je_lua_canvas.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lua/modules/graphics/je_lua_canvas.cpp b/src/lua/modules/graphics/je_lua_canvas.cpp index 80ee155..261f940 100644 --- a/src/lua/modules/graphics/je_lua_canvas.cpp +++ b/src/lua/modules/graphics/je_lua_canvas.cpp @@ -1,4 +1,4 @@ -#include "common/je_lua_proxy.h" +#include "common/je_lua_object.h" #include "common/je_lua_common.h" #include "libjin/jin.h" #include "je_lua_canvas.h" @@ -16,8 +16,8 @@ namespace JinEngine LUA_IMPLEMENT inline SharedCanvas checkCanvas(lua_State* L) { - Proxy* proxy = (Proxy*)luax_checktype(L, 1, Jin_Lua_Canvas); - return proxy->getShared<Canvas>(); + LuaObject* luaObj = (LuaObject*)luax_checktype(L, 1, Jin_Lua_Canvas); + return luaObj->getShared<Canvas>(); } LUA_IMPLEMENT int l_getWidth(lua_State* L) @@ -44,8 +44,8 @@ namespace JinEngine LUA_IMPLEMENT int l_gc(lua_State* L) { - Proxy* proxy = (Proxy*)luax_checktype(L, 1, Jin_Lua_Canvas); - proxy->release(); + LuaObject* luaObj = (LuaObject*)luax_checktype(L, 1, Jin_Lua_Canvas); + luaObj->release(); return 0; } |