aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/openglsdl
diff options
context:
space:
mode:
authorJohannes Schickel2011-09-23 19:45:44 +0200
committerJohannes Schickel2011-09-23 19:45:44 +0200
commit325addff0cd8fac98927ccedc1115f8da4dfdfaa (patch)
treee26eaabfea2d25bf17fde1aaba28850c43b2346b /backends/graphics/openglsdl
parent75fb3b4ef89f531f8d5b95036a38351d3731f577 (diff)
downloadscummvm-rg350-325addff0cd8fac98927ccedc1115f8da4dfdfaa.tar.gz
scummvm-rg350-325addff0cd8fac98927ccedc1115f8da4dfdfaa.tar.bz2
scummvm-rg350-325addff0cd8fac98927ccedc1115f8da4dfdfaa.zip
OPENGLSDL: Make fullscreen mode switching work again.
Diffstat (limited to 'backends/graphics/openglsdl')
-rw-r--r--backends/graphics/openglsdl/openglsdl-graphics.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/graphics/openglsdl/openglsdl-graphics.cpp b/backends/graphics/openglsdl/openglsdl-graphics.cpp
index 84515732fe..cfc78cfcac 100644
--- a/backends/graphics/openglsdl/openglsdl-graphics.cpp
+++ b/backends/graphics/openglsdl/openglsdl-graphics.cpp
@@ -460,6 +460,10 @@ void OpenGLSdlGraphicsManager::toggleFullScreen(int loop) {
_activeFullscreenMode = -2;
setFullscreenMode(!isFullscreen);
}
+
+ // HACK: We need to force a refresh here, since we change the
+ // fullscreen mode.
+ _transactionDetails.needRefresh = true;
endGFXTransaction();
// Ignore resize events for the next 10 frames