[Scummvm-cvs-logs] SF.net SVN: scummvm:[36037] scummvm/branches/branch-0-13-0/gui/browser.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Sat Jan 24 17:29:38 CET 2009
Revision: 36037
http://scummvm.svn.sourceforge.net/scummvm/?rev=36037&view=rev
Author: lordhoto
Date: 2009-01-24 16:29:38 +0000 (Sat, 24 Jan 2009)
Log Message:
-----------
Fix for bug #2533091 "MAC: Cannot add games in the launcher in fullscreen mode". (backport of r36036)
Modified Paths:
--------------
scummvm/branches/branch-0-13-0/gui/browser.cpp
Modified: scummvm/branches/branch-0-13-0/gui/browser.cpp
===================================================================
--- scummvm/branches/branch-0-13-0/gui/browser.cpp 2009-01-24 16:27:52 UTC (rev 36036)
+++ scummvm/branches/branch-0-13-0/gui/browser.cpp 2009-01-24 16:29:38 UTC (rev 36037)
@@ -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