aboutsummaryrefslogtreecommitdiff
path: root/src/lua/modules/graphics/je_lua_canvas.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/modules/graphics/je_lua_canvas.cpp')
-rw-r--r--src/lua/modules/graphics/je_lua_canvas.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lua/modules/graphics/je_lua_canvas.cpp b/src/lua/modules/graphics/je_lua_canvas.cpp
index 42570b2..8d8630f 100644
--- a/src/lua/modules/graphics/je_lua_canvas.cpp
+++ b/src/lua/modules/graphics/je_lua_canvas.cpp
@@ -47,17 +47,17 @@ namespace JinEngine
return 0;
}
- LUA_IMPLEMENT const luaL_Reg f[] = {
- { "__gc", l_gc },
- { "getWidth", l_getWidth },
- { "getHeight", l_getHeight },
- { "getSize", l_getSize },
- { 0, 0 }
- };
-
LUA_EXPORT int luaopen_Canvas(lua_State* L)
{
+ luaL_Reg f[] = {
+ { "__gc", l_gc },
+ { "getWidth", l_getWidth },
+ { "getHeight", l_getHeight },
+ { "getSize", l_getSize },
+ { 0, 0 }
+ };
luax_newtype(L, JIN_GRAPHICS_CANVAS, f);
+
return 0;
}