[Scummvm-cvs-logs] scummvm master -> fff47ac4bd8a0960a91670006ae510142bf10cd0

lordhoto lordhoto at gmail.com
Tue Jun 17 23:22:23 CEST 2014


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
fff47ac4bd OPENGLSDL: Make workaround for fast resolution changes actually work for WME.


Commit: fff47ac4bd8a0960a91670006ae510142bf10cd0
    https://github.com/scummvm/scummvm/commit/fff47ac4bd8a0960a91670006ae510142bf10cd0
Author: Johannes Schickel (lordhoto at scummvm.org)
Date: 2014-06-17T23:21:33+02:00

Commit Message:
OPENGLSDL: Make workaround for fast resolution changes actually work for WME.

Thanks to fuzzie for noticing this.

Changed paths:
    backends/graphics/openglsdl/openglsdl-graphics.cpp



diff --git a/backends/graphics/openglsdl/openglsdl-graphics.cpp b/backends/graphics/openglsdl/openglsdl-graphics.cpp
index 3f42d62..bca0750 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






More information about the Scummvm-git-logs mailing list