From 12e0d8997b80e4fdc497c28606c9eaaca8fe5764 Mon Sep 17 00:00:00 2001 From: Fabio Battaglia Date: Sat, 28 Aug 2010 08:07:10 +0000 Subject: 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 --- backends/platform/dingux/dingux-graphics.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'backends/platform/dingux') 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; -- cgit v1.2.3