[Scummvm-cvs-logs] SF.net SVN: scummvm:[36036] scummvm/trunk/gui/browser.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sat Jan 24 17:27:52 CET 2009


Revision: 36036
          http://scummvm.svn.sourceforge.net/scummvm/?rev=36036&view=rev
Author:   lordhoto
Date:     2009-01-24 16:27:52 +0000 (Sat, 24 Jan 2009)

Log Message:
-----------
Fix for bug #2533091 "MAC: Cannot add games in the launcher in fullscreen mode".

Modified Paths:
--------------
    scummvm/trunk/gui/browser.cpp

Modified: scummvm/trunk/gui/browser.cpp
===================================================================
--- scummvm/trunk/gui/browser.cpp	2009-01-24 12:26:14 UTC (rev 36035)
+++ scummvm/trunk/gui/browser.cpp	2009-01-24 16:27:52 UTC (rev 36036)
@@ -63,8 +63,11 @@
 
 	// If in fullscreen mode, switch to windowed mode
 	bool wasFullscreen = g_system->getFeatureState(OSystem::kFeatureFullscreenMode);
-	if (wasFullscreen)
+	if (wasFullscreen) {
+		g_system->beginGFXTransaction();
 		g_system->setFeatureState(OSystem::kFeatureFullscreenMode, false);
+		g_system->endGFXTransaction();
+	}
 
 	// Temporarily show the real mouse
 	CGDisplayShowCursor(kCGDirectMainDisplay);
@@ -118,8 +121,11 @@
 	NavDialogDispose(dialogRef);
 
 	// If we were in fullscreen mode, switch back
-	if (wasFullscreen)
+	if (wasFullscreen) {
+		g_system->beginGFXTransaction();
 		g_system->setFeatureState(OSystem::kFeatureFullscreenMode, true);
+		g_system->endGFXTransaction();
+	}
 
 	return choiceMade;
 }


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list