aboutsummaryrefslogtreecommitdiff
path: root/src/lua/graphics/luaopen_graphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/graphics/luaopen_graphics.cpp')
-rw-r--r--src/lua/graphics/luaopen_graphics.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lua/graphics/luaopen_graphics.cpp b/src/lua/graphics/luaopen_graphics.cpp
index 025781e..44b0a2c 100644
--- a/src/lua/graphics/luaopen_graphics.cpp
+++ b/src/lua/graphics/luaopen_graphics.cpp
@@ -27,7 +27,7 @@ namespace lua
*/
static int l_init(lua_State* L)
{
- Window* wnd = Window::get();
+ WindowSystem* wnd = WindowSystem::get();
WindowSetting setting;
setting.width = luax_getfield_integer(L, 1, "width");
setting.height = luax_getfield_integer(L, 1, "height");
@@ -40,7 +40,7 @@ namespace lua
static int l_destroy(lua_State* L)
{
- Window* wnd = Window::get();
+ WindowSystem* wnd = WindowSystem::get();
wnd->quit();
return 0;
}
@@ -50,7 +50,7 @@ namespace lua
*/
static int l_getSize(lua_State* L)
{
- Window* wnd = Window::get();
+ WindowSystem* wnd = WindowSystem::get();
luax_pushnumber(L, wnd->getW());
luax_pushnumber(L, wnd->getH());
return 2;
@@ -127,7 +127,7 @@ namespace lua
*/
static int l_present(lua_State* L)
{
- Window::get()->swapBuffers();
+ WindowSystem::get()->swapBuffers();
return 0;
}