From: rubenwardy Date: Sun, 5 Aug 2018 22:14:24 +0000 (+0100) Subject: Fix debug and info text being the wrong color X-Git-Tag: 5.0.0~265 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8d68b2cd210fea3cd852c648464c8bdd9cac02a7;p=oweals%2Fminetest.git Fix debug and info text being the wrong color Fixes #7623 --- diff --git a/src/irrlicht_changes/static_text.h b/src/irrlicht_changes/static_text.h index c15bf869a..43c587284 100644 --- a/src/irrlicht_changes/static_text.h +++ b/src/irrlicht_changes/static_text.h @@ -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_