1
0
Fork 0

Forget to fix non freetype build in StaticText

mutilcraft-mt53
Loic Blot 2018-01-12 08:36:38 +01:00
parent 62872dabac
commit 6f2fe8a554
No known key found for this signature in database
GPG Key ID: EFAA458E8C153987
1 changed files with 17 additions and 4 deletions

View File

@ -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,
@ -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)
{