From 1fb6c6309795f78fd837d25ccb2fda03cf6456f5 Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 21 Nov 2025 14:44:49 +0100 Subject: [PATCH 1/2] fix dedi compile --- src/dedicated/i_video.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dedicated/i_video.c b/src/dedicated/i_video.c index 8227233a8..4ade52c5f 100644 --- a/src/dedicated/i_video.c +++ b/src/dedicated/i_video.c @@ -122,6 +122,10 @@ INT32 VID_GetModeForSize(INT32 w, INT32 h) return -1; } +void VID_RefreshModeList(void) +{ +} + void VID_PrepareModeList(void) { } From 8a8cbffd128493647aa90c713b59155819a4a2eb Mon Sep 17 00:00:00 2001 From: Alug Date: Sun, 23 Nov 2025 23:21:37 +0100 Subject: [PATCH 2/2] 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; }