GUI: Check for screen changes in the saveload chooser selection code.
This commit is contained in:
parent
38b8b6eff1
commit
0052ef2802
1 changed files with 8 additions and 0 deletions
|
@ -35,6 +35,14 @@ namespace GUI {
|
|||
#ifndef DISABLE_SAVELOADCHOOSER_GRID
|
||||
SaveLoadChooserType getRequestedSaveLoadDialog(const MetaEngine &metaEngine) {
|
||||
const Common::String &userConfig = ConfMan.get("gui_saveload_chooser", Common::ConfigManager::kApplicationDomain);
|
||||
|
||||
// Check (and update if necessary) the theme config here. This catches
|
||||
// resolution changes, which happened after the GUI was closed. This
|
||||
// should assure that the correct GUI width/height are returned below and
|
||||
// prevent the logic from picking the grid dialog, even though it is not
|
||||
// possible to use it.
|
||||
g_gui.checkScreenChange();
|
||||
|
||||
if (g_gui.getWidth() >= 640 && g_gui.getHeight() >= 400
|
||||
&& metaEngine.hasFeature(MetaEngine::kSavesSupportMetaInfo)
|
||||
&& metaEngine.hasFeature(MetaEngine::kSavesSupportThumbnail)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue