mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
BASE: Fixed typo when erasing window-size (#4866)
When parsing the command line option "window-size" the DO_LONG_OPTION inserts "window-size" into the settings StringMap. This is soon later deleted, but instead of deleting "window-size" it deletes the non-existent setting "window_size". This is needed because width and height are stored in "last_window_width" and "last_window_height" respectivly and "window-size" is not used anywhere.
This commit is contained in:
@@ -714,7 +714,7 @@ Common::String parseCommandLine(Common::StringMap &settings, int argc, const cha
|
||||
|
||||
settings["last_window_width"] = w;
|
||||
settings["last_window_height"] = h;
|
||||
settings.erase("window_size");
|
||||
settings.erase("window-size");
|
||||
END_OPTION
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user