[Scummvm-cvs-logs] SF.net SVN: scummvm:[52422] scummvm/trunk/backends/platform/dingux/ dingux-graphics.cpp
hkz at users.sourceforge.net
hkz at users.sourceforge.net
Sat Aug 28 10:07:10 CEST 2010
Revision: 52422
http://scummvm.svn.sourceforge.net/scummvm/?rev=52422&view=rev
Author: hkz
Date: 2010-08-28 08:07:10 +0000 (Sat, 28 Aug 2010)
Log Message:
-----------
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.
Modified Paths:
--------------
scummvm/trunk/backends/platform/dingux/dingux-graphics.cpp
Modified: scummvm/trunk/backends/platform/dingux/dingux-graphics.cpp
===================================================================
--- scummvm/trunk/backends/platform/dingux/dingux-graphics.cpp 2010-08-28 07:42:54 UTC (rev 52421)
+++ scummvm/trunk/backends/platform/dingux/dingux-graphics.cpp 2010-08-28 08:07:10 UTC (rev 52422)
@@ -426,6 +426,14 @@
}
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;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list