aboutsummaryrefslogtreecommitdiff
path: root/engines/director
diff options
context:
space:
mode:
authorEugene Sandulenko2019-12-01 16:29:28 +0100
committerEugene Sandulenko2019-12-01 16:29:54 +0100
commita51c23abd3a667811b01e90b0c8c53505021950a (patch)
tree9c7feaade998e41fe43741d625dbffbd8ae80879 /engines/director
parentea5af861282b0bc4081e033b3ba8212524289d49 (diff)
downloadscummvm-rg350-a51c23abd3a667811b01e90b0c8c53505021950a.tar.gz
scummvm-rg350-a51c23abd3a667811b01e90b0c8c53505021950a.tar.bz2
scummvm-rg350-a51c23abd3a667811b01e90b0c8c53505021950a.zip
DIRECTOR: Do not re-render text if it was not changed
Diffstat (limited to 'engines/director')
-rw-r--r--engines/director/cast.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/director/cast.cpp b/engines/director/cast.cpp
index f01b4a17d9..5a4936c33f 100644
--- a/engines/director/cast.cpp
+++ b/engines/director/cast.cpp
@@ -226,6 +226,10 @@ void TextCast::importRTE(byte *text) {
}
void TextCast::setText(const char *text) {
+ // Do nothing if text did not change
+ if (_ftext.equals(text))
+ return;
+
_ftext = text;
_cachedMacText->forceDirty();