Fix debug and info text being the wrong color

Fixes #7623
This commit is contained in:
rubenwardy 2018-08-05 23:14:24 +01:00
parent ee63b94f2c
commit 8d68b2cd21
No known key found for this signature in database
GPG Key ID: A1E29D52FF81513C

@ -274,7 +274,10 @@ 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, static_text->getOverrideColor()));
auto color = static_text->isOverrideColorEnabled()
? static_text->getOverrideColor()
: irr::video::SColor(255, 255, 255, 255);
setStaticText(static_text, EnrichedString(text, color));
}
#endif // _IRR_COMPILE_WITH_GUI_