From 9dc63edb428ddd6adaf2b3ceed0773bc41906f47 Mon Sep 17 00:00:00 2001 From: jsalmon3 <> Date: Thu, 11 Apr 2002 03:41:22 +0000 Subject: [PATCH] Fix a windows sdl bug where starting in fullscreen then switching to window mode showed the sdl cursor. --- src/video/sdl.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/video/sdl.cpp b/src/video/sdl.cpp index 4abbef783..df4cc80b4 100644 --- a/src/video/sdl.cpp +++ b/src/video/sdl.cpp @@ -942,6 +942,13 @@ global void ToggleFullScreen(void) } } +#ifdef USE_WIN32 + // Windows shows the SDL cursor when starting in fullscreen mode + // then switching to window mode. This hides the cursor again. + SDL_ShowCursor(SDL_ENABLE); + SDL_ShowCursor(SDL_DISABLE); +#endif + SDL_LockSurface(Screen); memcpy(Screen->pixels, pixels, framesize); free(pixels);