Browse Source

Forget to fix non freetype build in StaticText

Loic Blot 6 năm trước cách đây
mục cha
commit
6f2fe8a554
1 tập tin đã thay đổi với 17 bổ sung4 xóa
  1. 17 4
      src/irrlicht_changes/static_text.h

+ 17 - 4
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)
 {