diff options
author | chai <chaifix@163.com> | 2018-07-22 15:25:01 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-07-22 15:25:01 +0800 |
commit | ad483a2d1c25f2f986eedbdadf4dbf1f24d0c532 (patch) | |
tree | 195233426c0fbace33e5c51d4e1e9d367701fe25 /src/lua/graphics/luaopen_graphics.cpp | |
parent | b2c7bb0b283dd2a80f345e26c042d6ffaf05209c (diff) |
*singleton
Diffstat (limited to 'src/lua/graphics/luaopen_graphics.cpp')
-rw-r--r-- | src/lua/graphics/luaopen_graphics.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lua/graphics/luaopen_graphics.cpp b/src/lua/graphics/luaopen_graphics.cpp index 362ee93..025781e 100644 --- a/src/lua/graphics/luaopen_graphics.cpp +++ b/src/lua/graphics/luaopen_graphics.cpp @@ -33,7 +33,8 @@ namespace lua setting.height = luax_getfield_integer(L, 1, "height"); setting.title = luax_getfield_string(L, 1, "title"); setting.vsync = luax_getfield_bool(L, 1, "vsync"); - luax_pushboolean(L, wnd->init(&setting)); + wnd->init(&setting); + luax_pushboolean(L, 1); return 1; } |