aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backends/platform/sdl/graphics.cpp4
-rw-r--r--backends/platform/sdl/sdl-common.h5
2 files changed, 6 insertions, 3 deletions
diff --git a/backends/platform/sdl/graphics.cpp b/backends/platform/sdl/graphics.cpp
index 59bc5e997b..cb8457fbdb 100644
--- a/backends/platform/sdl/graphics.cpp
+++ b/backends/platform/sdl/graphics.cpp
@@ -316,7 +316,7 @@ void OSystem_SDL::loadGFXMode() {
_overlayWidth = _screenWidth * _scaleFactor;
_overlayHeight = _screenHeight * _scaleFactor;
- if (_screenHeight != 200)
+ if (_screenHeight != 200 && _screenHeight != 400)
_adjustAspectRatio = false;
if (_adjustAspectRatio)
@@ -735,7 +735,7 @@ void OSystem_SDL::setFullscreenMode(bool enable) {
}
void OSystem_SDL::setAspectRatioCorrection(bool enable) {
- if ((_screenHeight == 200 && _adjustAspectRatio != enable) ||
+ if (((_screenHeight == 200 || _screenHeight == 400) && _adjustAspectRatio != enable) ||
_transactionMode == kTransactionCommit) {
Common::StackLock lock(_graphicsMutex);
diff --git a/backends/platform/sdl/sdl-common.h b/backends/platform/sdl/sdl-common.h
index 41e33b5b5d..27a4d25e78 100644
--- a/backends/platform/sdl/sdl-common.h
+++ b/backends/platform/sdl/sdl-common.h
@@ -399,7 +399,10 @@ protected:
virtual bool saveScreenshot(const char *filename); // overloaded by CE backend
- int effectiveScreenHeight() const { return (_adjustAspectRatio ? 240 : _screenHeight) * _scaleFactor; }
+ int effectiveScreenHeight() const {
+ return (_adjustAspectRatio ? real2Aspect(_screenHeight) : _screenHeight)
+ * _scaleFactor;
+ }
void setupIcon();
void handleKbdMouse();