Skip to content

Commit

Permalink
Forget to fix non freetype build in StaticText
Browse files Browse the repository at this point in the history
  • Loading branch information
nerzhul committed Jan 12, 2018
1 parent 62872da commit 6f2fe8a
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions src/irrlicht_changes/static_text.h
Expand Up @@ -239,7 +239,15 @@ inline void setStaticText(irr::gui::IGUIStaticText *static_text, const EnrichedS

#else // USE_FREETYPE

inline irr::gui::IGUIStaticText *addStaticText(
namespace irr
{
namespace gui
{

class StaticText
{
public:
static irr::gui::IGUIStaticText *add(
irr::gui::IGUIEnvironment *guienv,
const EnrichedString &text,
const core::rect< s32 > &rectangle,
Expand All @@ -248,9 +256,14 @@ inline irr::gui::IGUIStaticText *addStaticText(
irr::gui::IGUIElement *parent = NULL,
s32 id = -1,
bool fillBackground = false)
{
return guienv->addStaticText(text.c_str(), rectangle, border, wordWrap, parent, id, fillBackground);
}
{
return guienv->addStaticText(text.c_str(), rectangle, border, wordWrap, parent, id, fillBackground);
}
};

} // end namespace gui

} // end namespace irr

inline void setStaticText(irr::gui::IGUIStaticText *static_text, const EnrichedString &text)
{
Expand Down

0 comments on commit 6f2fe8a

Please sign in to comment.