aboutsummaryrefslogtreecommitdiff
path: root/engines/director/score.cpp
diff options
context:
space:
mode:
authorTobia Tesan2017-05-01 00:30:03 +0200
committerEugene Sandulenko2017-05-02 21:01:23 +0100
commitd6f651064b52fda31838a8260ef7e97d1c661cc5 (patch)
tree5ffd76b9e72df70cb7cb3593d8e81530d7c89406 /engines/director/score.cpp
parent8b9e029c1e661723ba0399b865c5b7b8ec542dd1 (diff)
downloadscummvm-rg350-d6f651064b52fda31838a8260ef7e97d1c661cc5.tar.gz
scummvm-rg350-d6f651064b52fda31838a8260ef7e97d1c661cc5.tar.bz2
scummvm-rg350-d6f651064b52fda31838a8260ef7e97d1c661cc5.zip
DIRECTOR: Add TextCast::importStxt
Diffstat (limited to 'engines/director/score.cpp')
-rw-r--r--engines/director/score.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/engines/director/score.cpp b/engines/director/score.cpp
index 7decd6b3f2..2d78a7089a 100644
--- a/engines/director/score.cpp
+++ b/engines/director/score.cpp
@@ -202,16 +202,6 @@ void Score::loadArchive() {
}
}
-void copyStxt(TextCast *textCast, const Stxt *stxt) {
- textCast->fontId = stxt->_fontId;
- textCast->textSlant = stxt->_textSlant;
- textCast->fontSize = stxt->_fontSize;
- textCast->palinfo1 = stxt->_palinfo1;
- textCast->palinfo2 = stxt->_palinfo2;
- textCast->palinfo3 = stxt->_palinfo3;
- textCast->_ftext = stxt->_ftext;
-}
-
void Score::copyCastStxts() {
Common::HashMap<int, TextCast *>::iterator tc;
for (tc = _loadedText->begin(); tc != _loadedText->end(); ++tc) {
@@ -220,7 +210,7 @@ void Score::copyCastStxts() {
tc->_value->children[0].index;
if (_loadedStxts->getVal(stxtid)){
const Stxt *stxt = _loadedStxts->getVal(stxtid);
- copyStxt(tc->_value, stxt);
+ tc->_value->importStxt(stxt);
}
}
}