GUI: GMM Options dialog doesn't adapt to changing resolutions
|Reported by:||salty-horse||Owned by:|
When a hi-res SCUMM game such as COMI is launched via "./scummvm -g1x comi", the in-game options dialog renders incorrectly. While it will use the hi-res theme, the strings will be the low-res, shortened ones.
This is because SCUMM's menus are intialized before the resolution change, so
gui/options.cpp still thinks it's in low-res.
The menus also do not re-initialize after the window is resized, so the displayed strings do not adapt to the changing resolution.
An fix for the first problem is available here. It changes the initialization order of SCUMM so that the menus will initialize only after the resolution is set.
Even if a more general solutions is desired, one that adapts to the resolution changing dynamically, I still think the linked patch is the correct initialization order. Without it, the dialogs will have to be re-initialized twice. Once with the low resolution, and once with the high resolution, after SCUMM sets it.
Ticket imported from: bugs/7103.