From 44df85d6a4015f0a236a816f3de834f959c6d93d Mon Sep 17 00:00:00 2001 From: Alug Date: Sun, 9 Nov 2025 20:41:14 +0100 Subject: [PATCH] reduce the scope of this --- src/sdl/i_video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index 4cd486f87..4df2c54d5 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -1544,12 +1544,13 @@ static void I_FillScreenResolutionsList(boolean force) INT32 custom_w = cv_scr_width.value; INT32 custom_h = cv_scr_height.value; - boolean needcustom = true; // make sure those are valid if ((custom_w >= BASEVIDWIDTH && custom_h >= BASEVIDHEIGHT) && (custom_w <= MAXVIDWIDTH && custom_h <= MAXVIDHEIGHT)) { + boolean needcustom = true; + for (i = 0; i < list_size; i++) { if (windowedModes[i].w == custom_w && windowedModes[i].h == custom_h) @@ -1702,7 +1703,6 @@ INT32 VID_SetMode(INT32 modeNum) return SDL_TRUE; } - static SDL_bool Impl_CreateContext(void) { // Renderer-specific stuff