diff options
author | Johannes Schickel | 2014-06-17 23:31:16 +0200 |
---|---|---|
committer | Johannes Schickel | 2014-06-17 23:31:16 +0200 |
commit | dbbc45867147ea1410e1403875325ad4c35b5a0b (patch) | |
tree | bd7809ade1088accee596015e2ee9c6d3aeb0595 /backends | |
parent | fff47ac4bd8a0960a91670006ae510142bf10cd0 (diff) | |
download | scummvm-rg350-dbbc45867147ea1410e1403875325ad4c35b5a0b.tar.gz scummvm-rg350-dbbc45867147ea1410e1403875325ad4c35b5a0b.tar.bz2 scummvm-rg350-dbbc45867147ea1410e1403875325ad4c35b5a0b.zip |
OPENGLSDL: Move time stamp for last video mode set after fallback mode setup.
Diffstat (limited to 'backends')
-rw-r--r-- | backends/graphics/openglsdl/openglsdl-graphics.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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 |