From fff47ac4bd8a0960a91670006ae510142bf10cd0 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Tue, 17 Jun 2014 23:18:00 +0200 Subject: OPENGLSDL: Make workaround for fast resolution changes actually work for WME. Thanks to fuzzie for noticing this. --- backends/graphics/openglsdl/openglsdl-graphics.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'backends/graphics/openglsdl') 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 -- cgit v1.2.3