From 4eb3baa51ed95d7661bbeecbbdf040d51ac32187 Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Sat, 1 Feb 2020 20:41:32 +0100 Subject: StaticText: Reset background on EnrichedString change (#9340) This also fixes the F6 profiler background color -> now controlled by EnrichedString --- src/irrlicht_changes/static_text.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/irrlicht_changes') diff --git a/src/irrlicht_changes/static_text.cpp b/src/irrlicht_changes/static_text.cpp index 39b34d17c..bf61cd64e 100644 --- a/src/irrlicht_changes/static_text.cpp +++ b/src/irrlicht_changes/static_text.cpp @@ -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); -- cgit v1.2.3