Fix tooltip colors specified by formspec part
authorrubenwardy <rw@rubenwardy.com>
Sat, 4 Aug 2018 17:40:34 +0000 (18:40 +0100)
committerrubenwardy <rw@rubenwardy.com>
Sat, 4 Aug 2018 18:01:07 +0000 (19:01 +0100)
src/irrlicht_changes/static_text.h

index 3e8d07c858fc847dd697d8bf3898bfe4759ef477..c15bf869a12c6c44c1caf48172f308c193a0af1b 100644 (file)
@@ -274,7 +274,7 @@ inline void setStaticText(irr::gui::IGUIStaticText *static_text, const EnrichedS
 
 inline void setStaticText(irr::gui::IGUIStaticText *static_text, const wchar_t *text)
 {
-       setStaticText(static_text, EnrichedString(text));
+       setStaticText(static_text, EnrichedString(text, static_text->getOverrideColor()));
 }
 
 #endif // _IRR_COMPILE_WITH_GUI_