diff options
author | Eugene Sandulenko | 2019-12-22 14:46:45 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2019-12-22 14:49:23 +0100 |
commit | 8895ca3c1fc5957da7d47f73788ed6d223dcfac6 (patch) | |
tree | c367296b12ee6d8938f89b4a14ae32ac44b1ead8 /engines | |
parent | b85dd2d9234e210f7f311781bec30b134ff853be (diff) | |
download | scummvm-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')
-rw-r--r-- | engines/director/cast.cpp | 5 | ||||
-rw-r--r-- | engines/director/cast.h | 1 |
2 files changed, 4 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(); } diff --git a/engines/director/cast.h b/engines/director/cast.h index 7b3ed2701f..ca588d1d6f 100644 --- a/engines/director/cast.h +++ b/engines/director/cast.h @@ -145,6 +145,7 @@ public: uint16 _palinfo1, _palinfo2, _palinfo3; Common::String _ftext; + Common::String _ptext; void importStxt(const Stxt *stxt); void importRTE(byte* text); CachedMacText *_cachedMacText; |