From fb8f8ca52fd582b0300b2ffe13d05e80cff3c05f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Fri, 10 May 2024 21:23:32 +0200 Subject: [PATCH] SDL: Allow --xres and --yres to work even if a config file exists --- SDL/SDLMain.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SDL/SDLMain.cpp b/SDL/SDLMain.cpp index ce527a2a14..985309aa06 100644 --- a/SDL/SDLMain.cpp +++ b/SDL/SDLMain.cpp @@ -1317,9 +1317,9 @@ int main(int argc, char *argv[]) { x = g_Config.iWindowX; if (g_Config.iWindowY != -1) y = g_Config.iWindowY; - if (g_Config.iWindowWidth > 0) + if (g_Config.iWindowWidth > 0 && set_xres <= 0) w = g_Config.iWindowWidth; - if (g_Config.iWindowHeight > 0) + if (g_Config.iWindowHeight > 0 && set_yres <= 0) h = g_Config.iWindowHeight; }