aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/dingux
diff options
context:
space:
mode:
authorFabio Battaglia2010-08-28 08:07:10 +0000
committerFabio Battaglia2010-08-28 08:07:10 +0000
commit12e0d8997b80e4fdc497c28606c9eaaca8fe5764 (patch)
tree191b4a4376e89e1db4a2031a8b11da76ddda2cc2 /backends/platform/dingux
parent1185c2b8bea17c155eb55d8aff572b2cabbdf828 (diff)
downloadscummvm-rg350-12e0d8997b80e4fdc497c28606c9eaaca8fe5764.tar.gz
scummvm-rg350-12e0d8997b80e4fdc497c28606c9eaaca8fe5764.tar.bz2
scummvm-rg350-12e0d8997b80e4fdc497c28606c9eaaca8fe5764.zip
DINGUX: disable aspect ratio correction for some resolutions
Disable aspect ratio correction for games which have a native 240px height res, this fixes Maniac Mansion NES on dingux. svn-id: r52422
Diffstat (limited to 'backends/platform/dingux')
-rw-r--r--backends/platform/dingux/dingux-graphics.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/backends/platform/dingux/dingux-graphics.cpp b/backends/platform/dingux/dingux-graphics.cpp
index 569c045e16..bbd4a58636 100644
--- a/backends/platform/dingux/dingux-graphics.cpp
+++ b/backends/platform/dingux/dingux-graphics.cpp
@@ -426,6 +426,14 @@ void OSystem_SDL_Dingux::hideOverlay() {
}
bool OSystem_SDL_Dingux::loadGFXMode() {
+
+ // Forcefully disable aspect ratio correction for games
+ // which starts with a native 240px height resolution.
+ // This fixes games with weird resolutions, like MM Nes (256x240)
+ if(_videoMode.screenHeight == 240) {
+ _videoMode.aspectRatioCorrection = false;
+ }
+
fprintf(stdout, "Game ScreenMode = %d*%d\n", _videoMode.screenWidth, _videoMode.screenHeight);
if (_videoMode.screenWidth > 320 || _videoMode.screenHeight > 240) {
_videoMode.aspectRatioCorrection = false;