From 6f2fe8a554f01b5697112c8875e02ef52b1ef69e Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Fri, 12 Jan 2018 08:36:38 +0100 Subject: [PATCH] Forget to fix non freetype build in StaticText --- src/irrlicht_changes/static_text.h | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/src/irrlicht_changes/static_text.h b/src/irrlicht_changes/static_text.h index c95d5b95f..3e8d07c85 100644 --- a/src/irrlicht_changes/static_text.h +++ b/src/irrlicht_changes/static_text.h @@ -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) { -- 2.25.1