diff options
author | Eugene Sandulenko | 2008-06-06 20:58:32 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2008-06-06 20:58:32 +0000 |
commit | 18aec42f1909e9e4320ed7abe1c8dac2b6f6ffbb (patch) | |
tree | d062e946ff47c476bb2cb9c5b0bcdf30f970d2eb /engines | |
parent | 3d072b44029cfa6a574faf4b833bbbe2225e20d3 (diff) | |
download | scummvm-rg350-18aec42f1909e9e4320ed7abe1c8dac2b6f6ffbb.tar.gz scummvm-rg350-18aec42f1909e9e4320ed7abe1c8dac2b6f6ffbb.tar.bz2 scummvm-rg350-18aec42f1909e9e4320ed7abe1c8dac2b6f6ffbb.zip |
Fix apostrophe rendering in conversation texts.
svn-id: r32587
Diffstat (limited to 'engines')
-rw-r--r-- | engines/drascula/drascula.cpp | 6 | ||||
-rw-r--r-- | engines/drascula/staticdata.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/engines/drascula/drascula.cpp b/engines/drascula/drascula.cpp index da621a6674..50d4aad644 100644 --- a/engines/drascula/drascula.cpp +++ b/engines/drascula/drascula.cpp @@ -1481,6 +1481,12 @@ void DrasculaEngine::print_abc_opc(const char *said, int screenX, int screenY, i 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 diff --git a/engines/drascula/staticdata.h b/engines/drascula/staticdata.h index 8c06b39a17..e6e49f870c 100644 --- a/engines/drascula/staticdata.h +++ b/engines/drascula/staticdata.h @@ -75,7 +75,7 @@ const CharInfo charMap[CHARMAP_SIZE] = { { '\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 |