diff options
author | Filippos Karapetis | 2007-07-26 14:39:05 +0000 |
---|---|---|
committer | Filippos Karapetis | 2007-07-26 14:39:05 +0000 |
commit | da7d87e410a363754ee5f75d8e9ab29f04149386 (patch) | |
tree | b13bdd01a8d9c85f7334b551efd51e7dd64e0a7a | |
parent | 4785ae9cfc770746baca65ba70e014c77a24e98f (diff) | |
download | scummvm-rg350-da7d87e410a363754ee5f75d8e9ab29f04149386.tar.gz scummvm-rg350-da7d87e410a363754ee5f75d8e9ab29f04149386.tar.bz2 scummvm-rg350-da7d87e410a363754ee5f75d8e9ab29f04149386.zip |
The demo version of IHNM has 3 font types (like ITE), not 6 (like the full version of IHNM)
svn-id: r28215
-rw-r--r-- | engines/saga/font.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/saga/font.cpp b/engines/saga/font.cpp index ece48512df..caf41ab43e 100644 --- a/engines/saga/font.cpp +++ b/engines/saga/font.cpp @@ -629,7 +629,8 @@ void Font::textDrawRect(FontId fontId, Surface *ds, const char *text, const Comm Font::FontId Font::knownFont2FontIdx(KnownFont font) { FontId fontId = kSmallFont; - if (_vm->getGameType() == GType_ITE) { + // The demo version of IHNM has 3 font types (like ITE), not 6 (like the full version of IHNM) + if (_vm->getGameType() == GType_ITE || _vm->getGameId() == GID_IHNM_DEMO) { switch (font) { case (kKnownFontSmall): @@ -652,7 +653,7 @@ Font::FontId Font::knownFont2FontIdx(KnownFont font) { fontId = _vm->_font->valid(kBigFont) ? kBigFont : kMediumFont; break; } - } else if (_vm->getGameType() == GType_IHNM) { + } else if (_vm->getGameType() == GType_IHNM && _vm->getGameId() != GID_IHNM_DEMO) { switch (font) { case (kKnownFontSmall): |