[Scummvm-git-logs] scummvm master -> ee5e556ac91a7d9ea7428ccf034e5522669bab1a

sev- noreply at scummvm.org
Wed Oct 11 21:02:13 UTC 2023


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:
ee5e556ac9 GUI: Fix dumping dialogs with SurfaceSDL


Commit: ee5e556ac91a7d9ea7428ccf034e5522669bab1a
    https://github.com/scummvm/scummvm/commit/ee5e556ac91a7d9ea7428ccf034e5522669bab1a
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2023-10-11T23:02:04+02:00

Commit Message:
GUI: Fix dumping dialogs with SurfaceSDL

Changed paths:
    gui/dump-all-dialogs.cpp


diff --git a/gui/dump-all-dialogs.cpp b/gui/dump-all-dialogs.cpp
index 7c54d46e487..9453f4b2341 100644
--- a/gui/dump-all-dialogs.cpp
+++ b/gui/dump-all-dialogs.cpp
@@ -58,7 +58,9 @@ void dumpDialogs(const Common::String &message, int res, const Common::String &l
 	// Update resolution
 	ConfMan.setInt("last_window_width", res, Common::ConfigManager::kApplicationDomain);
 	ConfMan.setInt("last_window_height", 600, Common::ConfigManager::kApplicationDomain);
-	g_system->initSize(res, 600);
+	g_system->beginGFXTransaction();
+		g_system->initSize(res, 600);
+	g_system->endGFXTransaction();
 
 	Graphics::Surface surf;
 	surf.create(g_system->getOverlayWidth(), g_system->getOverlayHeight(), g_system->getOverlayFormat());
@@ -119,7 +121,10 @@ void dumpAllDialogs(const Common::String &message) {
 #endif
 	ConfMan.setInt("last_window_width", original_window_width, Common::ConfigManager::kApplicationDomain);
 	ConfMan.setInt("last_window_height", original_window_height, Common::ConfigManager::kApplicationDomain);
-	g_system->initSize(original_window_width, original_window_height);
+
+	g_system->beginGFXTransaction();
+		g_system->initSize(original_window_width, original_window_height);
+	g_system->endGFXTransaction();
 }
 
 } // End of namespace GUI




More information about the Scummvm-git-logs mailing list