From 8bc3fe351b0fb185b0cf68c60eaf3dce3b0c3a7f 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 3964a829f..ee663b842 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -1634,12 +1634,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) @@ -1792,7 +1793,6 @@ INT32 VID_SetMode(INT32 modeNum) return SDL_TRUE; } - static SDL_bool Impl_CreateContext(void) { // Renderer-specific stuff