KEMBAR78
ALL: Fixed typo when erasing window-size by wyatt-radkiewicz · Pull Request #4866 · scummvm/scummvm · GitHub
Skip to content

Conversation

@wyatt-radkiewicz
Copy link
Contributor

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" respectively and "window-size" is not used anywhere afterwords.

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.
@sev-
Copy link
Member

sev- commented Apr 5, 2023

Thanks. Indeed, replacing - with _ happens later in the code.

@sev- sev- merged commit 8a0fffa into scummvm:master Apr 5, 2023
NischayDiwan pushed a commit to NischayDiwan/scummvm that referenced this pull request Apr 11, 2023
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.
@wyatt-radkiewicz wyatt-radkiewicz deleted the pr branch May 6, 2023 02:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants