From 3058d365f32ad9bcf4be17990bcbf20aa0ed1ab9 Mon Sep 17 00:00:00 2001 From: Alug Date: Sun, 9 Nov 2025 18:52:53 +0100 Subject: [PATCH] no need to call I_FillScreenResolutionsList everywhere its fine after startup, and when we move our window --- src/sdl/i_video.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index 698244f1d..868aee3cd 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -1594,8 +1594,6 @@ const char *VID_GetModeName(INT32 modeNum) if (modeNum > MAXWINMODES) return NULL; - I_FillScreenResolutionsList(); - return windowedModes[modeNum].name; } @@ -1603,8 +1601,6 @@ INT32 VID_GetModeForSize(INT32 w, INT32 h) { int i; - I_FillScreenResolutionsList(); - for (i = 0; i < MAXWINMODES; i++) { if (windowedModes[i].w == w && windowedModes[i].h == h) @@ -1658,8 +1654,6 @@ INT32 VID_SetMode(INT32 modeNum) { vid.recalc = true; - I_FillScreenResolutionsList(); - if (modeNum >= 0 && modeNum < MAXWINMODES) { vid.width = windowedModes[modeNum].w;