shithub: wipeout

Download patch

ref: 6c85526fcd08fcff8c530120fe437c4193cd6308
parent: 5314d92ec6d4f5987fe442a73d30aff747fc667c
author: Dominic Szablewski <dominic@phoboslab.org>
date: Tue Aug 15 15:44:58 EDT 2023

Hide mouse cursor in fullscreen; close #23

--- a/src/platform_sdl.c
+++ b/src/platform_sdl.c
@@ -193,9 +193,11 @@
 		SDL_GetDesktopDisplayMode(display, &mode);
 		SDL_SetWindowDisplayMode(window, &mode);
 		SDL_SetWindowFullscreen(window, SDL_WINDOW_FULLSCREEN);
+		SDL_ShowCursor(SDL_DISABLE);
 	}
 	else {
-		SDL_SetWindowFullscreen(window, 0);	
+		SDL_SetWindowFullscreen(window, 0);
+		SDL_ShowCursor(SDL_ENABLE);
 	}
 }
 
--- a/src/platform_sokol.c
+++ b/src/platform_sokol.c
@@ -161,6 +161,7 @@
 	}
 
 	sapp_toggle_fullscreen();
+	sapp_show_mouse(!fullscreen);
 }
 
 void platform_handle_event(const sapp_event* ev) {