mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-03 23:52:41 +00:00
Fix for bug #2533091 "MAC: Cannot add games in the launcher in fullscreen mode".
svn-id: r36036
This commit is contained in:
parent
2c11490d69
commit
8ff3f14e29
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user