test: use SDL_GetDesktopDisplayMode instead of SDL_GetCurrentDisplayMode

this seems to fix some smol freezes for some
need to test this a bit
This commit is contained in:
Alug committed 2025-08-09 22:32:24 +01:00
1 parent f275eb5f9a
commit 0c8df833e9
1 file changed
+2 -2
+2 -2
View File
@@ -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;