aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars Mueller <appgurulars@gmx.de>2020-12-24 14:26:42 +0100
committersfan5 <sfan5@live.de>2020-12-28 13:57:45 +0100
commit09d7fbd645888aac32d089ff528ac1d1eb87e72d (patch)
tree13b7d80d51d0da46a79fed3287aab8272f0a3e96 /src
parent55dba1bc6d90c90ddd77d60f4760e34e28a6382f (diff)
downloadminetest-09d7fbd645888aac32d089ff528ac1d1eb87e72d.tar.gz
minetest-09d7fbd645888aac32d089ff528ac1d1eb87e72d.tar.bz2
minetest-09d7fbd645888aac32d089ff528ac1d1eb87e72d.zip
Fix item tooltip background color not working
Diffstat (limited to 'src')
-rw-r--r--src/gui/guiFormSpecMenu.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/guiFormSpecMenu.cpp b/src/gui/guiFormSpecMenu.cpp
index ed197d0d1..61112b570 100644
--- a/src/gui/guiFormSpecMenu.cpp
+++ b/src/gui/guiFormSpecMenu.cpp
@@ -3718,7 +3718,8 @@ void GUIFormSpecMenu::showTooltip(const std::wstring &text,
{
EnrichedString ntext(text);
ntext.setDefaultColor(color);
- ntext.setBackground(bgcolor);
+ if (!ntext.hasBackground())
+ ntext.setBackground(bgcolor);
setStaticText(m_tooltip_element, ntext);