aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2014-06-17 23:18:00 +0200
committerJohannes Schickel2014-06-17 23:21:33 +0200
commitfff47ac4bd8a0960a91670006ae510142bf10cd0 (patch)
tree7f58cc8b9b72fd44eb1b17fc496c34be83e51c7d
parenta37bb1dabbe586df65ceb311af349343ebd2b973 (diff)
downloadscummvm-rg350-fff47ac4bd8a0960a91670006ae510142bf10cd0.tar.gz
scummvm-rg350-fff47ac4bd8a0960a91670006ae510142bf10cd0.tar.bz2
scummvm-rg350-fff47ac4bd8a0960a91670006ae510142bf10cd0.zip
OPENGLSDL: Make workaround for fast resolution changes actually work for WME.
Thanks to fuzzie for noticing this.
-rw-r--r--backends/graphics/openglsdl/openglsdl-graphics.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/graphics/openglsdl/openglsdl-graphics.cpp b/backends/graphics/openglsdl/openglsdl-graphics.cpp
index 3f42d62a3a..bca0750169 100644
--- a/backends/graphics/openglsdl/openglsdl-graphics.cpp
+++ b/backends/graphics/openglsdl/openglsdl-graphics.cpp
@@ -311,7 +311,6 @@ bool OpenGLSdlGraphicsManager::setupMode(uint width, uint height) {
SDL_Delay(10);
}
}
- _lastVideoModeLoad = curTime;
uint32 flags = SDL_OPENGL;
if (_wantsFullScreen) {
@@ -329,6 +328,8 @@ bool OpenGLSdlGraphicsManager::setupMode(uint width, uint height) {
}
_hwScreen = SDL_SetVideoMode(width, height, 32, flags);
+ // Part of the WORKAROUND mentioned above.
+ _lastVideoModeLoad = SDL_GetTicks();
if (!_hwScreen) {
// We treat fullscreen requests as a "hint" for now. This means in