[Scummvm-cvs-logs] SF.net SVN: scummvm:[42474] scummvm/trunk/engines/agos/string.cpp

Kirben at users.sourceforge.net Kirben at users.sourceforge.net
Tue Jul 14 14:34:42 CEST 2009


Revision: 42474
          http://scummvm.svn.sourceforge.net/scummvm/?rev=42474&view=rev
Author:   Kirben
Date:     2009-07-14 12:34:42 +0000 (Tue, 14 Jul 2009)

Log Message:
-----------
Add workaround for bug #1538873 - SIMON1 (French): Text wrongly displayed.

Modified Paths:
--------------
    scummvm/trunk/engines/agos/string.cpp

Modified: scummvm/trunk/engines/agos/string.cpp
===================================================================
--- scummvm/trunk/engines/agos/string.cpp	2009-07-14 11:15:21 UTC (rev 42473)
+++ scummvm/trunk/engines/agos/string.cpp	2009-07-14 12:34:42 UTC (rev 42474)
@@ -136,6 +136,18 @@
 		strcpy((char *)dst, (const char *)stringPtr);
 	}
 
+	// WORKAROUND bug #1538873: The French version used excess spaces, 
+	// at the end of many messages, so we strip off those excess spaces.
+	if (getGameType() == GType_SIMON1 && _language == Common::FR_FRA) {
+		uint16 len = strlen((const char *)dst) - 1;
+
+		while (len && dst[len] == 32) {
+			dst[len] = 0;
+			len--;
+		}
+
+	}
+
 	if (upperCase && *dst) {
 		if (islower(*dst))
 			*dst = toupper(*dst);


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