From 4883c1c84b449307aeb981d3d56b00eb8eb9c5d1 Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Sun, 10 Oct 2021 11:55:53 +0200 Subject: [PATCH] Improved full screen; hide cursor as well --- main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 261e4dd..a000e0e 100644 --- a/main.cpp +++ b/main.cpp @@ -165,10 +165,11 @@ int main(int argc, const char * argv[]) { sc::gui::SDLImageWrapper sdl_image; // main window - sc::gui::Window& window {sc::gui::Window::new_window("Living Art", SDL_WINDOW_FULLSCREEN)}; + sc::gui::Window& window {sc::gui::Window::new_window("Living Art", SDL_WINDOW_FULLSCREEN_DESKTOP)}; main_window = &window; window.add_event_handler(handle_window_resize, SDL_WINDOWEVENT_RESIZED); window.add_event_handler(handle_window_resize, SDL_WINDOWEVENT_SIZE_CHANGED); + SDL_ShowCursor(SDL_DISABLE); // setup sdl surface and connect to cairo create_image(WIDTH, HEIGHT);