From 0c8df833e9d09bd339bfb21dbd4841c0cdda9b1a 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 03de99d4e..54e8878eb 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -620,7 +620,7 @@ static void I_CheckDesktopRes(void) return; } - if (SDL_GetCurrentDisplayMode(currentDisplayIndex, &curmode) != 0) + if (SDL_GetDesktopDisplayMode(currentDisplayIndex, &curmode) != 0) { return; } @@ -1639,7 +1639,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;