Menu

#7103 GUI: GMM Options dialog doesn't adapt to changing resolutions

*None
open
nobody
None
5
2016-04-01
2016-04-01
No

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 g_system->getOverlayWidth() in 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.

Discussion