I_CheckDesktopRes: use SDL_GetCurrentDisplayMode

instead of SDL_GetDesktopDisplayMode, as the former only returns the display mode from when the window was created, which might not reflect the actual current desktop mode.
Maybe fixes some resolutions being incorrectly reported asa having visual issues
This commit is contained in:
Alug committed 2025-11-23 23:21:47 +01:00
1 parent 1fb6c63097
commit 8a8cbffd12
1 file changed
+1 -1
+1 -1
View File
@@ -1241,7 +1241,7 @@ static void I_CheckDesktopRes(void)
return;
}
if (SDL_GetDesktopDisplayMode(currentDisplayIndex, &curmode) != 0)
if (SDL_GetCurrentDisplayMode(currentDisplayIndex, &curmode) != 0)
{
return;
}