Skip to content

Commit 6f2fe8a

Browse files
committedJan 12, 2018
Forget to fix non freetype build in StaticText
1 parent 62872da commit 6f2fe8a

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed
 

‎src/irrlicht_changes/static_text.h

+17-4
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,15 @@ inline void setStaticText(irr::gui::IGUIStaticText *static_text, const EnrichedS
239239

240240
#else // USE_FREETYPE
241241

242-
inline irr::gui::IGUIStaticText *addStaticText(
242+
namespace irr
243+
{
244+
namespace gui
245+
{
246+
247+
class StaticText
248+
{
249+
public:
250+
static irr::gui::IGUIStaticText *add(
243251
irr::gui::IGUIEnvironment *guienv,
244252
const EnrichedString &text,
245253
const core::rect< s32 > &rectangle,
@@ -248,9 +256,14 @@ inline irr::gui::IGUIStaticText *addStaticText(
248256
irr::gui::IGUIElement *parent = NULL,
249257
s32 id = -1,
250258
bool fillBackground = false)
251-
{
252-
return guienv->addStaticText(text.c_str(), rectangle, border, wordWrap, parent, id, fillBackground);
253-
}
259+
{
260+
return guienv->addStaticText(text.c_str(), rectangle, border, wordWrap, parent, id, fillBackground);
261+
}
262+
};
263+
264+
} // end namespace gui
265+
266+
} // end namespace irr
254267

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

0 commit comments

Comments
 (0)