mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-08-15 14:43:32 -07:00
Remove workaround for old SDL2 on Windows
Some checks are pending
Some checks are pending
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 <ralph.sennhauser@gmail.com>
This commit is contained in:
parent
d85cea244e
commit
711a584d3e
1 changed files with 0 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue