From 8a8cbffd128493647aa90c713b59155819a4a2eb Mon Sep 17 00:00:00 2001 From: Alug Date: Sun, 23 Nov 2025 23:21:37 +0100 Subject: [PATCH] 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 --- src/sdl/i_video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index 5a38114bc..b5ce0d4d5 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -1241,7 +1241,7 @@ static void I_CheckDesktopRes(void) return; } - if (SDL_GetDesktopDisplayMode(currentDisplayIndex, &curmode) != 0) + if (SDL_GetCurrentDisplayMode(currentDisplayIndex, &curmode) != 0) { return; }