diff options
author | Andrew Kurushin | 2005-11-03 18:20:12 +0000 |
---|---|---|
committer | Andrew Kurushin | 2005-11-03 18:20:12 +0000 |
commit | 43a083a117a42879a18ea4c3a5e721d261fb8489 (patch) | |
tree | 8dfb8e3cad472c7b7fa928720d02af148b046eae /saga/sfuncs.cpp | |
parent | 7f691c3ca2068e708915b968a6f210ec205ce442 (diff) | |
download | scummvm-rg350-43a083a117a42879a18ea4c3a5e721d261fb8489.tar.gz scummvm-rg350-43a083a117a42879a18ea4c3a5e721d261fb8489.tar.bz2 scummvm-rg350-43a083a117a42879a18ea4c3a5e721d261fb8489.zip |
-implement font substitution funcs
-move puzzle data to itedata
svn-id: r19411
Diffstat (limited to 'saga/sfuncs.cpp')
-rw-r--r-- | saga/sfuncs.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/saga/sfuncs.cpp b/saga/sfuncs.cpp index 4fab7ccb66..e81a8106b1 100644 --- a/saga/sfuncs.cpp +++ b/saga/sfuncs.cpp @@ -1309,7 +1309,7 @@ void Script::sfPlacard(SCRIPTFUNC_PARAMS) { textEntry.effectColor = kITEColorBlack; textEntry.point.x = _vm->getDisplayWidth() / 2; textEntry.point.y = (_vm->_scene->getHeight() - _vm->_font->getHeight(kMediumFont)) / 2; - textEntry.fontId = kMediumFont; + textEntry.font = kKnownFontMedium; textEntry.flags = (FontEffectFlags)(kFontOutline | kFontCentered); textEntry.text = thread->_strings->getString(stringId); @@ -1591,10 +1591,7 @@ void Script::sfScriptText(SCRIPTFUNC_PARAMS) { text = thread->_strings->getString(stringId); - if (_vm->getGameType() == GType_ITE) - width = _vm->_font->getStringWidth(kMediumFont, text, 0, kFontOutline); - else - width = _vm->_font->getStringWidth(kIHNMMainFont, text, 0, kFontOutline); + width = _vm->_font->getStringWidth(kKnownFontScript, text, 0, kFontOutline); rect.top = point.y - 6; rect.setHeight(12); rect.left = point.x - width / 2; |