From dc4f58e40c7565f58495f431c16ecfae3e91afbb Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Tue, 21 Nov 2017 21:52:32 -0500 Subject: [PATCH] Hides the mouse cursor when in SDL fullscreen mode. --- OSBindings/SDL/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/OSBindings/SDL/main.cpp b/OSBindings/SDL/main.cpp index a5a9ebddc..56656a5da 100644 --- a/OSBindings/SDL/main.cpp +++ b/OSBindings/SDL/main.cpp @@ -422,6 +422,7 @@ int main(int argc, char *argv[]) { if(event.key.keysym.sym == SDLK_RETURN && (SDL_GetModState()&KMOD_ALT)) { fullscreen_mode ^= SDL_WINDOW_FULLSCREEN_DESKTOP; SDL_SetWindowFullscreen(window, fullscreen_mode); + SDL_ShowCursor((fullscreen_mode&SDL_WINDOW_FULLSCREEN_DESKTOP) ? SDL_DISABLE : SDL_ENABLE); break; }