From e0f353be4c21f38978bef83e9651ef9eda886da4 Mon Sep 17 00:00:00 2001 From: Andy <drumsetmonkey@gmail.com> Date: Wed, 26 Oct 2016 08:43:43 -0400 Subject: Stuff is solid --- src/window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/window.cpp') diff --git a/src/window.cpp b/src/window.cpp index 69c383c..4c73b8b 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -71,9 +71,9 @@ void WindowSystem::configure(entityx::EventManager &ev) void WindowSystem::receive(const WindowResizeEvent &wre) { - game::SCREEN_WIDTH = wre.x; game::SCREEN_HEIGHT = wre.y; + glViewport(0, 0, wre.x, wre.y); SDL_SetWindowSize(window, wre.x, wre.y); } -- cgit v1.2.3