From 08b99cc35787981157a5b812609b1effefb11352 Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Thu, 22 Sep 2022 22:48:47 +0200 Subject: [PATCH] Resizable and movable window in debug mode --- main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.cpp b/main.cpp index 27d1c87..1fe99b4 100644 --- a/main.cpp +++ b/main.cpp @@ -157,7 +157,11 @@ int main(int argc, const char * argv[]) { sc::gui::SDLImageWrapper sdl_image; // main window +#if DEBUG + sc::gui::Window& window {sc::gui::Window::new_window("Living Art")}; +#else sc::gui::Window& window {sc::gui::Window::new_window("Living Art", SDL_WINDOW_FULLSCREEN_DESKTOP)}; +#endif main_window = &window; window.add_event_handler(handle_window_resize, SDL_WINDOWEVENT_RESIZED); window.add_event_handler(handle_window_resize, SDL_WINDOWEVENT_SIZE_CHANGED);