diff options
author | Filippos Karapetis | 2009-01-27 17:39:11 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-01-27 17:39:11 +0000 |
commit | fa71814c077a2c4ceb50f321e8951b7f17efaf99 (patch) | |
tree | 4df0b3904651350254a16ace970aec4a899a1f53 /engines/saga/font.cpp | |
parent | 1d04e168aea927e142f297cced9a9189440c4883 (diff) | |
download | scummvm-rg350-fa71814c077a2c4ceb50f321e8951b7f17efaf99.tar.gz scummvm-rg350-fa71814c077a2c4ceb50f321e8951b7f17efaf99.tar.bz2 scummvm-rg350-fa71814c077a2c4ceb50f321e8951b7f17efaf99.zip |
Proper fix for accented characters in the Italian version of ITE
svn-id: r36103
Diffstat (limited to 'engines/saga/font.cpp')
-rw-r--r-- | engines/saga/font.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/engines/saga/font.cpp b/engines/saga/font.cpp index 97903f7bee..175ab01478 100644 --- a/engines/saga/font.cpp +++ b/engines/saga/font.cpp @@ -28,7 +28,7 @@ #include "saga/saga.h" #include "saga/gfx.h" #include "saga/resource.h" - +#include "saga/scene.h" #include "saga/font.h" #include "saga/render.h" @@ -342,10 +342,14 @@ void Font::outFont(const FontStyle &drawFont, const char *text, size_t count, co // It doesn't make any difference for the English version of IHNM. // Fixes bug #1796045: "IHNM: Spanish font wrong". if (!(flags & kFontDontmap) && _vm->getGameId() == GID_ITE) { - // Don't do any special font mapping for the Italian fan - // translation of ITE - if (_vm->getLanguage() != Common::IT_ITA) + if (_vm->getLanguage() != Common::IT_ITA) { c_code = translateChar(c_code); + } else { + // The in-game fonts of the Italian version should not be mapped. + // The ones in the intro are hardcoded and should be mapped normally. + if (_vm->_scene->isInIntro()) + c_code = translateChar(c_code); + } } } else if (_fontMapping == 1) { // Force font mapping |