From 128b6dd3e3a803e475ec03493ee26e6b20d7e42b Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 23 Jul 2018 18:57:50 +0800 Subject: update Signed-off-by: chai --- src/lua/graphics/luaopen_graphics.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lua/graphics/luaopen_graphics.cpp') 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; } -- cgit v1.1-26-g67d0