diff options
author | Eugene Sandulenko | 2019-12-01 16:29:28 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2019-12-01 16:29:54 +0100 |
commit | a51c23abd3a667811b01e90b0c8c53505021950a (patch) | |
tree | 9c7feaade998e41fe43741d625dbffbd8ae80879 /engines/director/cast.cpp | |
parent | ea5af861282b0bc4081e033b3ba8212524289d49 (diff) | |
download | scummvm-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/cast.cpp')
-rw-r--r-- | engines/director/cast.cpp | 4 |
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(); |