DIRECTOR: Do not re-render text if it was not changed

This commit is contained in:
Eugene Sandulenko 2019-12-01 16:29:28 +01:00
parent ea5af86128
commit a51c23abd3

View File

@ -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();