diff options
author | Lars Mueller <appgurulars@gmx.de> | 2020-12-24 14:26:42 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2020-12-28 13:57:45 +0100 |
commit | 09d7fbd645888aac32d089ff528ac1d1eb87e72d (patch) | |
tree | 13b7d80d51d0da46a79fed3287aab8272f0a3e96 | |
parent | 55dba1bc6d90c90ddd77d60f4760e34e28a6382f (diff) | |
download | minetest-09d7fbd645888aac32d089ff528ac1d1eb87e72d.tar.gz minetest-09d7fbd645888aac32d089ff528ac1d1eb87e72d.tar.bz2 minetest-09d7fbd645888aac32d089ff528ac1d1eb87e72d.zip |
Fix item tooltip background color not working
-rw-r--r-- | src/gui/guiFormSpecMenu.cpp | 3 |
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); |