From 711a584d3ee8a95bc31b6d64658ec54dd3b7f6bd Mon Sep 17 00:00:00 2001 From: Ralph Sennhauser Date: Mon, 6 Jul 2026 20:43:15 +0200 Subject: [PATCH] Remove workaround for old SDL2 on Windows This removes the workaround for a bug[1] @Stan confirmed was fixed upstream in SDL2 2.20 in the mentioned bug report. On Windows we are using 2.32.8 now. [1] https://github.com/libsdl-org/SDL/issues/5033 Signed-off-by: Ralph Sennhauser --- source/ps/GameSetup/GameSetup.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/source/ps/GameSetup/GameSetup.cpp b/source/ps/GameSetup/GameSetup.cpp index 58f74108fd..77216b2563 100644 --- a/source/ps/GameSetup/GameSetup.cpp +++ b/source/ps/GameSetup/GameSetup.cpp @@ -297,14 +297,6 @@ static void InitSDL() SDL_SetHint(SDL_HINT_MOUSE_DOUBLE_CLICK_RADIUS, "1"); #endif -#if SDL_VERSION_ATLEAST(2, 0, 14) && OS_WIN - // SDL2 >= 2.0.14 Before SDL 2.0.14, this defaulted to true. In 2.0.14 they switched to false - // breaking the behavior on Windows. - // https://github.com/libsdl-org/SDL/commit/1947ca7028ab165cc3e6cbdb0b4b7c4db68d1710 - // https://github.com/libsdl-org/SDL/issues/5033 - SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "1"); -#endif - #if OS_MACOSX // Some Mac mice only have one button, so they can't right-click // but SDL2 can emulate that with Ctrl+Click