Skip to content

Commit

Permalink
Fix debug and info text being the wrong color
Browse files Browse the repository at this point in the history
Fixes #7623
  • Loading branch information
rubenwardy committed Aug 5, 2018
1 parent ee63b94 commit 8d68b2c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/irrlicht_changes/static_text.h
Expand Up @@ -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_

0 comments on commit 8d68b2c

Please sign in to comment.