aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2019-12-10 23:57:44 +0100
committerEugene Sandulenko2019-12-11 00:45:12 +0100
commitc106675294468a5edce999c40e164be6855f7b14 (patch)
tree27a5037417653727438973683a32a7d380ebda66
parentff68862ecc404ce32c86831c902bdd6375a13116 (diff)
downloadscummvm-rg350-c106675294468a5edce999c40e164be6855f7b14.tar.gz
scummvm-rg350-c106675294468a5edce999c40e164be6855f7b14.tar.bz2
scummvm-rg350-c106675294468a5edce999c40e164be6855f7b14.zip
DIRECTOR: Store original Stxt value
-rw-r--r--engines/director/stxt.cpp2
-rw-r--r--engines/director/stxt.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/engines/director/stxt.cpp b/engines/director/stxt.cpp
index 463e5f705c..a2d746c9e8 100644
--- a/engines/director/stxt.cpp
+++ b/engines/director/stxt.cpp
@@ -42,6 +42,8 @@ Stxt::Stxt(Common::SeekableSubReadStreamEndian &textStream) {
if (strLen < 200)
debugC(3, kDebugText, "text: '%s'", Common::toPrintable(text).c_str());
+ _ptext = text;
+
uint16 formattingCount = textStream.readUint16();
uint32 prevPos = 0;
diff --git a/engines/director/stxt.h b/engines/director/stxt.h
index 116a17ab68..a08c687fe6 100644
--- a/engines/director/stxt.h
+++ b/engines/director/stxt.h
@@ -33,6 +33,7 @@ public:
public:
Common::String _ftext;
+ Common::String _ptext;
uint32 _fontId;
uint16 _fontSize;
TextType _textType;