reduce the scope of this

This commit is contained in:
Alug committed 2025-11-09 20:41:24 +01:00
1 parent 42d53f1f6f
commit 44df85d6a4
1 file changed
+2 -2
+2 -2
View File
@@ -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