[Scummvm-cvs-logs] SF.net SVN: scummvm: [32587] scummvm/trunk/engines/drascula
sev at users.sourceforge.net
sev at users.sourceforge.net
Fri Jun 6 22:58:32 CEST 2008
Revision: 32587
http://scummvm.svn.sourceforge.net/scummvm/?rev=32587&view=rev
Author: sev
Date: 2008-06-06 13:58:32 -0700 (Fri, 06 Jun 2008)
Log Message:
-----------
Fix apostrophe rendering in conversation texts.
Modified Paths:
--------------
scummvm/trunk/engines/drascula/drascula.cpp
scummvm/trunk/engines/drascula/staticdata.h
Modified: scummvm/trunk/engines/drascula/drascula.cpp
===================================================================
--- scummvm/trunk/engines/drascula/drascula.cpp 2008-06-06 20:21:06 UTC (rev 32586)
+++ scummvm/trunk/engines/drascula/drascula.cpp 2008-06-06 20:58:32 UTC (rev 32587)
@@ -1481,6 +1481,12 @@
int c = toupper(said[h]);
+ // WORKAROUND: Even original did not process it correctly
+ // Fixes apostrophe rendering
+ if (_lang != kSpanish)
+ if (c == '\'')
+ c = '\244';
+
for (int i = 0; i < CHARMAP_SIZE; i++) {
if (c == charMap[i].inChar) {
// Convert the mapped char of the normal font to the
Modified: scummvm/trunk/engines/drascula/staticdata.h
===================================================================
--- scummvm/trunk/engines/drascula/staticdata.h 2008-06-06 20:21:06 UTC (rev 32586)
+++ scummvm/trunk/engines/drascula/staticdata.h 2008-06-06 20:58:32 UTC (rev 32587)
@@ -75,7 +75,7 @@
{ '\225', 78, 2 }, { '\227', 87, 2 }, // I, J
{ '\203', 96, 2 }, { '\210', 105, 2 }, // K, L
{ '\214', 114, 2 }, { '\223', 123, 2 }, // M, N
- { '\226', 132, 2 }, { '\047', 141, 2 }, // special Spanish char, O
+ { '\226', 132, 2 }, { '\'', 141, 2 }, // special Spanish char, O
{ '\200', 150, 2 }, { '\207', 150, 2 }, // P, P
{ '\265', 6, 2 }, { '\220', 15, 2 }, // A, B
{ '\326', 24, 2 }, { '\340', 33, 2 }, // C, D
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