From 2d2956eb693ad1e42ffebaba6447cb2939457a7f Mon Sep 17 00:00:00 2001 From: Alug Date: Sat, 9 Aug 2025 22:24:21 +0200 Subject: [PATCH] test: use SDL_GetDesktopDisplayMode instead of SDL_GetCurrentDisplayMode this seems to fix some smol freezes for some need to test this a bit --- src/sdl/i_video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index 6dabea648..06b6e2dde 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -626,7 +626,7 @@ static void I_CheckDesktopRes(void) return; } - if (SDL_GetCurrentDisplayMode(currentDisplayIndex, &curmode) != 0) + if (SDL_GetDesktopDisplayMode(currentDisplayIndex, &curmode) != 0) { return; } @@ -1652,7 +1652,7 @@ static UINT32 VID_GetRefreshRate(void) return 0; } - if (SDL_GetCurrentDisplayMode(index, &m) != 0) + if (SDL_GetDesktopDisplayMode(index, &m) != 0) { // Error has occurred. return 0;