[Scummvm-cvs-logs] scummvm master -> 0052ef2802ce2f6306338a180a4833708f7e7af1

lordhoto lordhoto at gmail.com
Sun Oct 28 20:51:43 CET 2012


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
0052ef2802 GUI: Check for screen changes in the saveload chooser selection code.


Commit: 0052ef2802ce2f6306338a180a4833708f7e7af1
    https://github.com/scummvm/scummvm/commit/0052ef2802ce2f6306338a180a4833708f7e7af1
Author: Johannes Schickel (lordhoto at scummvm.org)
Date: 2012-10-28T13:44:05-07:00

Commit Message:
GUI: Check for screen changes in the saveload chooser selection code.

Changed paths:
    gui/saveload-dialog.cpp



diff --git a/gui/saveload-dialog.cpp b/gui/saveload-dialog.cpp
index df8dda7..c7dd62b 100644
--- a/gui/saveload-dialog.cpp
+++ b/gui/saveload-dialog.cpp
@@ -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)






More information about the Scummvm-git-logs mailing list