From c106675294468a5edce999c40e164be6855f7b14 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 10 Dec 2019 23:57:44 +0100 Subject: DIRECTOR: Store original Stxt value --- engines/director/stxt.cpp | 2 ++ engines/director/stxt.h | 1 + 2 files changed, 3 insertions(+) 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; -- cgit v1.2.3