diff options
author | Johannes Schickel | 2014-06-17 23:18:00 +0200 |
---|---|---|
committer | Johannes Schickel | 2014-06-17 23:21:33 +0200 |
commit | fff47ac4bd8a0960a91670006ae510142bf10cd0 (patch) | |
tree | 7f58cc8b9b72fd44eb1b17fc496c34be83e51c7d /backends | |
parent | a37bb1dabbe586df65ceb311af349343ebd2b973 (diff) | |
download | scummvm-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.
Diffstat (limited to 'backends')
-rw-r--r-- | backends/graphics/openglsdl/openglsdl-graphics.cpp | 3 |
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 |