diff options
| -rw-r--r-- | backends/graphics/openglsdl/openglsdl-graphics.cpp | 12 | 
1 files changed, 7 insertions, 5 deletions
diff --git a/backends/graphics/openglsdl/openglsdl-graphics.cpp b/backends/graphics/openglsdl/openglsdl-graphics.cpp index cfc78cfcac..ab44b00104 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;  | 
