aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorJohannes Schickel2009-01-24 16:27:52 +0000
committerJohannes Schickel2009-01-24 16:27:52 +0000
commit8ff3f14e2909e71538a2ddec1572af1160501b16 (patch)
tree7b145ff492e19ebde584fe3dcd54b00bd9f255e2 /gui
parent2c11490d698d7fb065938fe5acfa3101f046f378 (diff)
downloadscummvm-rg350-8ff3f14e2909e71538a2ddec1572af1160501b16.tar.gz
scummvm-rg350-8ff3f14e2909e71538a2ddec1572af1160501b16.tar.bz2
scummvm-rg350-8ff3f14e2909e71538a2ddec1572af1160501b16.zip
Fix for bug #2533091 "MAC: Cannot add games in the launcher in fullscreen mode".
svn-id: r36036
Diffstat (limited to 'gui')
-rw-r--r--gui/browser.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/gui/browser.cpp b/gui/browser.cpp
index 1d20546c21..48382e880b 100644
--- a/gui/browser.cpp
+++ b/gui/browser.cpp
@@ -63,8 +63,11 @@ int BrowserDialog::runModal() {
// 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 @@ int BrowserDialog::runModal() {
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;
}