mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-18 16:03:05 +00:00
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.
This commit is contained in:
parent
7ac5bcd6f1
commit
c91b6d7d35
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user