From dbbc45867147ea1410e1403875325ad4c35b5a0b Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Tue, 17 Jun 2014 23:31:16 +0200 Subject: OPENGLSDL: Move time stamp for last video mode set after fallback mode setup. --- backends/graphics/openglsdl/openglsdl-graphics.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'backends') diff --git a/backends/graphics/openglsdl/openglsdl-graphics.cpp b/backends/graphics/openglsdl/openglsdl-graphics.cpp index bca0750169..c3584daa86 100644 --- a/backends/graphics/openglsdl/openglsdl-graphics.cpp +++ b/backends/graphics/openglsdl/openglsdl-graphics.cpp @@ -328,8 +328,6 @@ 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 @@ -339,6 +337,9 @@ bool OpenGLSdlGraphicsManager::setupMode(uint width, uint height) { } } + // Part of the WORKAROUND mentioned above. + _lastVideoModeLoad = SDL_GetTicks(); + if (_hwScreen) { // This is pretty confusing since RGBA8888 talks about the memory // layout here. This is a different logical layout depending on -- cgit v1.2.3