aboutsummaryrefslogtreecommitdiff
path: root/engines/director/cast.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2019-12-22 14:46:45 +0100
committerEugene Sandulenko2019-12-22 14:49:23 +0100
commit8895ca3c1fc5957da7d47f73788ed6d223dcfac6 (patch)
treec367296b12ee6d8938f89b4a14ae32ac44b1ead8 /engines/director/cast.cpp
parentb85dd2d9234e210f7f311781bec30b134ff853be (diff)
downloadscummvm-rg350-8895ca3c1fc5957da7d47f73788ed6d223dcfac6.tar.gz
scummvm-rg350-8895ca3c1fc5957da7d47f73788ed6d223dcfac6.tar.bz2
scummvm-rg350-8895ca3c1fc5957da7d47f73788ed6d223dcfac6.zip
DIRECTOR: Store also unformatted text for text cast
Diffstat (limited to 'engines/director/cast.cpp')
-rw-r--r--engines/director/cast.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/director/cast.cpp b/engines/director/cast.cpp
index 0de884a7cb..72e9c1517f 100644
--- a/engines/director/cast.cpp
+++ b/engines/director/cast.cpp
@@ -215,6 +215,7 @@ void TextCast::importStxt(const Stxt *stxt) {
_palinfo2 = stxt->_palinfo2;
_palinfo3 = stxt->_palinfo3;
_ftext = stxt->_ftext;
+ _ptext = stxt->_ptext;
_cachedMacText->setStxt(this);
}
@@ -223,7 +224,7 @@ void TextCast::importRTE(byte *text) {
//assert(rteList.size() == 3);
//child0 is probably font data.
//child1 is the raw text.
- _ftext = Common::String((char*)text);
+ _ptext = _ftext = Common::String((char*)text);
//child2 is positional?
}
@@ -232,7 +233,7 @@ void TextCast::setText(const char *text) {
if (_ftext.equals(text))
return;
- _ftext = text;
+ _ptext = _ftext = text;
_cachedMacText->forceDirty();
}