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

lordhoto lordhoto at gmail.com
Thu Dec 15 21:49:43 CET 2011


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:
c91b6d7d35 OPENGLSDL: Fix video mode initialization for 640x400 games with AR enabled.


Commit: c91b6d7d357300597e74126b48aa1473587a8133
    https://github.com/scummvm/scummvm/commit/c91b6d7d357300597e74126b48aa1473587a8133
Author: Johannes Schickel (lordhoto at scummvm.org)
Date: 2011-12-15T12:48:14-08:00

Commit Message:
OPENGLSDL: Fix video mode initialization for 640x400 games with AR enabled.

Formerly they always used a height of 240 * scaleFactor, which would for
exmaple make the games requesting a 1x scaler use a height of 240 if AR
is enabled.

This was a regression from b8dcd9a25eb27ef40aa5535fc83879d20db7e10c.

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 cfc78cf..ab44b00 100644
--- a/backends/graphics/openglsdl/openglsdl-graphics.cpp
+++ b/backends/graphics/openglsdl/openglsdl-graphics.cpp
@@ -318,12 +318,14 @@ bool OpenGLSdlGraphicsManager::loadGFXMode() {
 		// only used to ensure that the original pixel size aspect for these
 		// modes is used.
 		// (Non-square pixels on old monitors vs square pixel on new ones).
-		if (_videoMode.aspectRatioCorrection
-		    && ((_videoMode.screenWidth == 320 && _videoMode.screenHeight == 200)
-		    || (_videoMode.screenWidth == 640 && _videoMode.screenHeight == 400)))
-			_videoMode.overlayHeight = _videoMode.hardwareHeight = 240 * scaleFactor;
-		else
+		if (_videoMode.aspectRatioCorrection) {
+		 	if (_videoMode.screenWidth == 320 && _videoMode.screenHeight == 200)
+				_videoMode.overlayHeight = _videoMode.hardwareHeight = 240 * scaleFactor;
+			else if (_videoMode.screenWidth == 640 && _videoMode.screenHeight == 400)
+				_videoMode.overlayHeight = _videoMode.hardwareHeight = 480 * scaleFactor;
+		} else {
 			_videoMode.overlayHeight = _videoMode.hardwareHeight = _videoMode.screenHeight * scaleFactor;
+		}
 	}
 
 	_screenResized = false;






More information about the Scummvm-git-logs mailing list