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

svn-id: r36036
This commit is contained in:
Johannes Schickel 2009-01-24 16:27:52 +00:00
parent 2c11490d69
commit 8ff3f14e29

View File

@ -63,8 +63,11 @@ int BrowserDialog::runModal() {
// If in fullscreen mode, switch to windowed mode // If in fullscreen mode, switch to windowed mode
bool wasFullscreen = g_system->getFeatureState(OSystem::kFeatureFullscreenMode); bool wasFullscreen = g_system->getFeatureState(OSystem::kFeatureFullscreenMode);
if (wasFullscreen) if (wasFullscreen) {
g_system->beginGFXTransaction();
g_system->setFeatureState(OSystem::kFeatureFullscreenMode, false); g_system->setFeatureState(OSystem::kFeatureFullscreenMode, false);
g_system->endGFXTransaction();
}
// Temporarily show the real mouse // Temporarily show the real mouse
CGDisplayShowCursor(kCGDirectMainDisplay); CGDisplayShowCursor(kCGDirectMainDisplay);
@ -118,8 +121,11 @@ int BrowserDialog::runModal() {
NavDialogDispose(dialogRef); NavDialogDispose(dialogRef);
// If we were in fullscreen mode, switch back // If we were in fullscreen mode, switch back
if (wasFullscreen) if (wasFullscreen) {
g_system->beginGFXTransaction();
g_system->setFeatureState(OSystem::kFeatureFullscreenMode, true); g_system->setFeatureState(OSystem::kFeatureFullscreenMode, true);
g_system->endGFXTransaction();
}
return choiceMade; return choiceMade;
} }