diff options
author | Andy <drumsetmonkey@gmail.com> | 2016-10-26 08:43:43 -0400 |
---|---|---|
committer | Andy <drumsetmonkey@gmail.com> | 2016-10-26 08:43:43 -0400 |
commit | e0f353be4c21f38978bef83e9651ef9eda886da4 (patch) | |
tree | 343e10ffab515f8141cd010f9f297575ad79b3a9 /src/window.cpp | |
parent | 52de6c2e6c048b84a7665b6fc583b2259bbdd3af (diff) |
Stuff is solid
Diffstat (limited to 'src/window.cpp')
-rw-r--r-- | src/window.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |