From d0bf1ee09b0c64cf2a9350f4f839ece13e445833 Mon Sep 17 00:00:00 2001 From: Patryk Obara Date: Tue, 7 Apr 2020 12:50:49 +0200 Subject: [PATCH] Allow selecting windowresolution only on start Changing this option dynamically via "config" built-in never worked, it was always broken. Set it to change'able only on start, otherwise all broken edge-cases would need to be fixed. --- src/gui/sdlmain.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/sdlmain.cpp b/src/gui/sdlmain.cpp index fd061a0b..083187ab 100644 --- a/src/gui/sdlmain.cpp +++ b/src/gui/sdlmain.cpp @@ -2434,8 +2434,8 @@ void Config_Add_SDL() { Pstring->Set_help("What resolution to use for fullscreen: 'original', 'desktop'\n" "or a fixed size (e.g. 1024x768)."); - Pstring = sdl_sec->Add_string("windowresolution", always, "original"); - Pstring->Set_help("Scale the window to this size. Value 'original' will resize\n" + pstring = sdl_sec->Add_string("windowresolution", on_start, "original"); + pstring->Set_help("Scale the window to this size. Value 'original' will resize\n" "window to the resolution picked by the emulated program.\n" "Not supported when 'output' is set to 'surface'.");