diff options
Diffstat (limited to 'src/irrlicht_changes/static_text.cpp')
-rw-r--r-- | src/irrlicht_changes/static_text.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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); |