summaryrefslogtreecommitdiff
path: root/src/irrlicht_changes
diff options
context:
space:
mode:
authorSmallJoker <SmallJoker@users.noreply.github.com>2020-02-01 20:41:32 +0100
committerGitHub <noreply@github.com>2020-02-01 20:41:32 +0100
commit4eb3baa51ed95d7661bbeecbbdf040d51ac32187 (patch)
tree48fbd24f6434aa957e1ebf0f6c7f098b5e6b944a /src/irrlicht_changes
parent7d29611c1b619b6a336fc0505d993fbe539a62b9 (diff)
downloadminetest-4eb3baa51ed95d7661bbeecbbdf040d51ac32187.tar.gz
minetest-4eb3baa51ed95d7661bbeecbbdf040d51ac32187.tar.bz2
minetest-4eb3baa51ed95d7661bbeecbbdf040d51ac32187.zip
StaticText: Reset background on EnrichedString change (#9340)
This also fixes the F6 profiler background color -> now controlled by EnrichedString
Diffstat (limited to 'src/irrlicht_changes')
-rw-r--r--src/irrlicht_changes/static_text.cpp5
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);