SDL: Allow --xres and --yres to work even if a config file exists

This commit is contained in:
Henrik Rydgård 2024-05-10 21:23:32 +02:00
parent 1ff7710854
commit fb8f8ca52f

View file

@ -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;
}