aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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