From fb1ca399126712a03fd41fe555a6228618da1665 Mon Sep 17 00:00:00 2001 From: chai Date: Sat, 28 Jul 2018 21:37:51 +0800 Subject: *update --- test/01HelloWorld/main.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test/01HelloWorld/main.cpp') diff --git a/test/01HelloWorld/main.cpp b/test/01HelloWorld/main.cpp index 6d76c8a..d187849 100644 --- a/test/01HelloWorld/main.cpp +++ b/test/01HelloWorld/main.cpp @@ -22,7 +22,6 @@ void onDraw() dt += 16; if (dt > 1000) { - std::cout << "a"; dt = 0; } } @@ -36,13 +35,15 @@ int main(int argc, char* argv[]) setting.drawer = onDraw; game->init(&setting); - WindowSystem* wnd = WindowSystem::get(); - WindowSystem::Setting wndSetting; + Window* wnd = Window::get(); + Window::Setting wndSetting; wndSetting.width = 600; wndSetting.height = 512; wndSetting.title = "test"; wndSetting.fps = 60; wndSetting.vsync = false; + wndSetting.fullscreen = false; + wndSetting.resizable = true; wnd->init(&wndSetting); game->run(); -- cgit v1.1-26-g67d0