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:
parent
7d29611c1b
commit
4eb3baa51e
2 changed files with 7 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue