aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
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;
}