mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 05:32:45 +00:00
DIRECTOR: Do not re-render text if it was not changed
This commit is contained in:
parent
ea5af86128
commit
a51c23abd3
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user