diff options
Diffstat (limited to 'src/window.cpp')
-rw-r--r-- | src/window.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/window.cpp b/src/window.cpp index af0f63b..48c0f31 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -75,13 +75,14 @@ void WindowSystem::configure(entityx::EventManager &ev) } -void WindowSystem::receive(const WindowResizeEvent &wre) +bool 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); + return true; } #include <ui.hpp> @@ -90,10 +91,11 @@ void WindowSystem::receive(const WindowResizeEvent &wre) static std::atomic_bool doScreenshot; -void WindowSystem::receive(const ScreenshotEvent &scr) +bool WindowSystem::receive(const ScreenshotEvent &scr) { (void)scr; doScreenshot.store(true); + return true; } void WindowSystem::render(void) |