From 7b34bd98bb00796febd5351b9d2e75fd2c247432 Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 12 Aug 2018 19:52:54 +0800 Subject: *update --- src/lua/graphics/luaopen_Image.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lua/graphics/luaopen_Image.cpp') diff --git a/src/lua/graphics/luaopen_Image.cpp b/src/lua/graphics/luaopen_Image.cpp index 546e6b1..0f97b2c 100644 --- a/src/lua/graphics/luaopen_Image.cpp +++ b/src/lua/graphics/luaopen_Image.cpp @@ -11,7 +11,7 @@ namespace lua static inline Texture* checkTexture(lua_State* L) { - Proxy* proxy = (Proxy*)luax_checktype(L, 1, TYPE_IMAGE); + Proxy* proxy = (Proxy*)luax_checktype(L, 1, JIN_GRAPHICS_IMAGE); if (proxy != nullptr) return (Texture*)proxy->object; return nullptr; @@ -63,7 +63,7 @@ namespace lua static int l_gc(lua_State* L) { - Proxy* proxy = (Proxy*)luax_checktype(L, 1, TYPE_IMAGE); + Proxy* proxy = (Proxy*)luax_checktype(L, 1, JIN_GRAPHICS_IMAGE); Texture* img = (Texture*)proxy->object; delete img; return 0; @@ -81,7 +81,7 @@ namespace lua int luaopen_Image(lua_State* L) { - luax_newtype(L, TYPE_IMAGE, f); + luax_newtype(L, JIN_GRAPHICS_IMAGE, f); return 0; } -- cgit v1.1-26-g67d0