[Scummvm-cvs-logs] SF.net SVN: scummvm: [28936] scummvm/trunk/engines/saga/font.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Tue Sep 18 11:26:03 CEST 2007


Revision: 28936
          http://scummvm.svn.sourceforge.net/scummvm/?rev=28936&view=rev
Author:   thebluegr
Date:     2007-09-18 02:26:03 -0700 (Tue, 18 Sep 2007)

Log Message:
-----------
Fix for bug #1796045 - "IHNM: Spanish font wrong"

Modified Paths:
--------------
    scummvm/trunk/engines/saga/font.cpp

Modified: scummvm/trunk/engines/saga/font.cpp
===================================================================
--- scummvm/trunk/engines/saga/font.cpp	2007-09-17 23:32:25 UTC (rev 28935)
+++ scummvm/trunk/engines/saga/font.cpp	2007-09-18 09:26:03 UTC (rev 28936)
@@ -328,7 +328,12 @@
 		// Translate character
 		if (_fontMapping == 0) {	// Check font mapping debug flag
 			// Default game behavior
-			if (!(flags & kFontDontmap))
+
+			// It seems that this font mapping causes problems with non-english
+			// versions of IHNM, so it has been changed to apply for ITE only.
+			// It doesn't make any difference for the English version of IHNM.
+			// Fixes bug #1796045: "IHNM: Spanish font wrong".
+			if (!(flags & kFontDontmap) && _vm->getGameType() == GType_ITE)
 				c_code = _charMap[c_code];
 		} else if (_fontMapping == 1) {
 			// Force font mapping
@@ -341,6 +346,8 @@
 		// Check if character is defined
 		if ((drawFont.fontCharEntry[c_code].index == 0) && (c_code != FONT_FIRSTCHAR)) {
 #if FONT_SHOWUNDEFINED
+			// A tab character appears in the IHNM demo instructions screen, so filter
+			// it out here
 			if (c_code == FONT_CH_SPACE || c_code == FONT_CH_TAB) {
 				textPoint.x += drawFont.fontCharEntry[c_code].tracking;
 				continue;


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