Resizable and movable window in debug mode
This commit is contained in:
parent
06778a752b
commit
08b99cc357
4
main.cpp
4
main.cpp
@ -157,7 +157,11 @@ int main(int argc, const char * argv[]) {
|
|||||||
sc::gui::SDLImageWrapper sdl_image;
|
sc::gui::SDLImageWrapper sdl_image;
|
||||||
|
|
||||||
// main window
|
// 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)};
|
sc::gui::Window& window {sc::gui::Window::new_window("Living Art", SDL_WINDOW_FULLSCREEN_DESKTOP)};
|
||||||
|
#endif
|
||||||
main_window = &window;
|
main_window = &window;
|
||||||
window.add_event_handler(handle_window_resize, SDL_WINDOWEVENT_RESIZED);
|
window.add_event_handler(handle_window_resize, SDL_WINDOWEVENT_RESIZED);
|
||||||
window.add_event_handler(handle_window_resize, SDL_WINDOWEVENT_SIZE_CHANGED);
|
window.add_event_handler(handle_window_resize, SDL_WINDOWEVENT_SIZE_CHANGED);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user