diff options
author | Eugene Sandulenko | 2005-09-29 15:57:41 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2005-09-29 15:57:41 +0000 |
commit | 36f77ad3f96745f45980b86f2d68cec40689c4c9 (patch) | |
tree | 567672d03a2c39d1841f010cc157e6a5a2888c3d /saga/sfuncs.cpp | |
parent | a7ec941d301f24b3515194886fbfeee9a3f8acbb (diff) | |
download | scummvm-rg350-36f77ad3f96745f45980b86f2d68cec40689c4c9.tar.gz scummvm-rg350-36f77ad3f96745f45980b86f2d68cec40689c4c9.tar.bz2 scummvm-rg350-36f77ad3f96745f45980b86f2d68cec40689c4c9.zip |
Fix fonts in intro. It is a very dirty code. Actually we should specify
font Ids in game settings. Also uhnm demo will definitely not work with current
code as it has lesser number of fonts.
svn-id: r18900
Diffstat (limited to 'saga/sfuncs.cpp')
-rw-r--r-- | saga/sfuncs.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/saga/sfuncs.cpp b/saga/sfuncs.cpp index 8dadea2938..b0508cba08 100644 --- a/saga/sfuncs.cpp +++ b/saga/sfuncs.cpp @@ -1583,13 +1583,20 @@ void Script::sfScriptText(SCRIPTFUNC_PARAMS) { point.y = thread->pop(); text = thread->_strings->getString(stringId); - width = _vm->_font->getStringWidth(kMediumFont, text, 0, kFontOutline); + + if (_vm->getGameType() == GType_ITE) + width = _vm->_font->getStringWidth(kMediumFont, text, 0, kFontOutline); + else + width = _vm->_font->getStringWidth(kIHNMMainFont, text, 0, kFontOutline); rect.top = point.y - 6; rect.setHeight(12); rect.left = point.x - width / 2; rect.setWidth(width); - _vm->_actor->setSpeechColor(color, kITEColorBlack); + if (_vm->getGameType() == GType_ITE) + _vm->_actor->setSpeechColor(color, kITEColorBlack); + else + _vm->_actor->setSpeechColor(color, kIHNMColorBlack); _vm->_actor->nonActorSpeech(rect, &text, 1, -1, flags); } |