]> git.lizzy.rs Git - minetest.git/commitdiff
Fix item tooltip background color not working
authorLars Mueller <appgurulars@gmx.de>
Thu, 24 Dec 2020 13:26:42 +0000 (14:26 +0100)
committersfan5 <sfan5@live.de>
Mon, 28 Dec 2020 12:57:45 +0000 (13:57 +0100)
src/gui/guiFormSpecMenu.cpp

index ed197d0d17a3f71d4acb98e71d2f1257cee3bb16..61112b5705490192a7e311954ba688fbb6be65e4 100644 (file)
@@ -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);