diff options
author | chai <chaifix@163.com> | 2018-09-09 18:03:05 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-09-09 18:03:05 +0800 |
commit | e3ddc74a36e4336d28e9e09586b5194c2e6e6dc6 (patch) | |
tree | 979992cd174fe5b488b58ffc831c6d7a67491fd4 /src/lua/modules/graphics/graphics.cpp | |
parent | 090bd8229421073305e5e202ac3347e95bbea36d (diff) |
*update
Diffstat (limited to 'src/lua/modules/graphics/graphics.cpp')
-rw-r--r-- | src/lua/modules/graphics/graphics.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lua/modules/graphics/graphics.cpp b/src/lua/modules/graphics/graphics.cpp index a8c54c2..d662cc7 100644 --- a/src/lua/modules/graphics/graphics.cpp +++ b/src/lua/modules/graphics/graphics.cpp @@ -25,12 +25,12 @@ namespace lua { Window* wnd = Window::get(); Window::Setting setting; - setting.width = luax_getfield_integer(L, 1, "width"); - setting.height = luax_getfield_integer(L, 1, "height"); - setting.title = luax_getfield_string(L, 1, "title"); - setting.vsync = luax_getfield_bool(L, 1, "vsync"); - setting.fullscreen = luax_getfield_bool(L, 1, "fullscreen"); - setting.resizable = luax_getfield_bool(L, 1, "resizable"); + setting.width = luax_getfieldinteger(L, 1, "width"); + setting.height = luax_getfieldinteger(L, 1, "height"); + setting.title = luax_getfieldstring(L, 1, "title"); + setting.vsync = luax_getfieldbool(L, 1, "vsync"); + setting.fullscreen = luax_getfieldbool(L, 1, "fullscreen"); + setting.resizable = luax_getfieldbool(L, 1, "resizable"); if (!wnd->init(&setting)) { luax_pushboolean(L, false); |