1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

StaticText: Reset background on EnrichedString change (#9340)

This also fixes the F6 profiler background color -> now controlled by EnrichedString
This commit is contained in:
SmallJoker 2020-02-01 20:41:32 +01:00 committed by GitHub
parent 7d29611c1b
commit 4eb3baa51e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 6 deletions

View file

@ -308,9 +308,10 @@ void StaticText::updateText()
const EnrichedString &cText = ColoredText;
BrokenText.clear();
if (cText.hasBackground()) {
if (cText.hasBackground())
setBackgroundColor(cText.getBackground());
}
else
setDrawBackground(false);
if (!WordWrap) {
BrokenText.push_back(cText);