aboutsummaryrefslogtreecommitdiff
path: root/engines/bladerunner/subtitles.h
diff options
context:
space:
mode:
authorThanasis Antoniou2019-07-21 23:19:00 +0300
committerThanasis Antoniou2019-07-21 23:19:00 +0300
commit286054b857c63cc7b0706eb5acfb85f21ce1e4b2 (patch)
treea8ab1774fc81d910cee3fb92c67db9a5d5b3a1b8 /engines/bladerunner/subtitles.h
parent886e18f936539fd90e61690dbb07fda950bc340a (diff)
downloadscummvm-rg350-286054b857c63cc7b0706eb5acfb85f21ce1e4b2.tar.gz
scummvm-rg350-286054b857c63cc7b0706eb5acfb85f21ce1e4b2.tar.bz2
scummvm-rg350-286054b857c63cc7b0706eb5acfb85f21ce1e4b2.zip
BLADERUNNER: Avoid redundant calls to wordWrapText for the same text
Diffstat (limited to 'engines/bladerunner/subtitles.h')
-rw-r--r--engines/bladerunner/subtitles.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/bladerunner/subtitles.h b/engines/bladerunner/subtitles.h
index 1de059b071..b84e0cf704 100644
--- a/engines/bladerunner/subtitles.h
+++ b/engines/bladerunner/subtitles.h
@@ -75,6 +75,9 @@ class Subtitles {
bool _isVisible;
bool _forceShowWhenNoSpeech;
Common::U32String _currentText;
+ Common::U32String _prevText;
+
+ Common::Array<Common::U32String> lines;
bool _gameSubsResourceEntriesFound[kMaxTextResourceEntries]; // false if a TRE file did not open successfully
bool _isSystemActive; // true if the whole subtitles subsystem should be disabled (due to missing required resources)