diff options
author | Johannes Schickel | 2012-12-10 19:26:13 +0100 |
---|---|---|
committer | Johannes Schickel | 2012-12-10 19:26:13 +0100 |
commit | d2a536ff89456c1f58afc4acb18a955e5b1a3612 (patch) | |
tree | 794762155d78c67d7a7d92b970d6b491fb55685b /backends | |
parent | 62d87e30f4dcdd78dc43747a5cdb1cc450bf4d3b (diff) | |
download | scummvm-rg350-d2a536ff89456c1f58afc4acb18a955e5b1a3612.tar.gz scummvm-rg350-d2a536ff89456c1f58afc4acb18a955e5b1a3612.tar.bz2 scummvm-rg350-d2a536ff89456c1f58afc4acb18a955e5b1a3612.zip |
Revert "OPENGLSDL: Remove HACK in fullscreen toggle mode."
This reverts commit b6f7d697090ca6f90d20f0f2d5661cc4c8b71bf2. This actually
breaks fullscreen mode cycling.
Diffstat (limited to 'backends')
-rw-r--r-- | backends/graphics/openglsdl/openglsdl-graphics.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/graphics/openglsdl/openglsdl-graphics.cpp b/backends/graphics/openglsdl/openglsdl-graphics.cpp index fed02ef22e..c5605cae87 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 |