aboutsummaryrefslogtreecommitdiff
path: root/src/irrlicht_changes/static_text.h
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2022-01-08 14:53:25 +0100
committerGitHub <noreply@github.com>2022-01-08 14:53:25 +0100
commit76dbd0d2d04712dcad4f7c6afecb97fa8d662d6d (patch)
tree248b907d2abeda0166d992bfb7b74b61cfe96d8a /src/irrlicht_changes/static_text.h
parentbf22569019749e421e8ffe0a73cff988a9a9c846 (diff)
downloadminetest-76dbd0d2d04712dcad4f7c6afecb97fa8d662d6d.tar.gz
minetest-76dbd0d2d04712dcad4f7c6afecb97fa8d662d6d.tar.bz2
minetest-76dbd0d2d04712dcad4f7c6afecb97fa8d662d6d.zip
Fully remove bitmap font support (#11863)
Freetype is now a build requirement.
Diffstat (limited to 'src/irrlicht_changes/static_text.h')
-rw-r--r--src/irrlicht_changes/static_text.h36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/irrlicht_changes/static_text.h b/src/irrlicht_changes/static_text.h
index 17a3bf753..74ef62008 100644
--- a/src/irrlicht_changes/static_text.h
+++ b/src/irrlicht_changes/static_text.h
@@ -20,7 +20,6 @@
#include "config.h"
#include <IGUIEnvironment.h>
-#if USE_FREETYPE
namespace irr
{
@@ -230,41 +229,6 @@ inline void setStaticText(irr::gui::IGUIStaticText *static_text, const EnrichedS
}
}
-#else // USE_FREETYPE
-
-namespace irr
-{
-namespace gui
-{
-
-class StaticText
-{
-public:
- static irr::gui::IGUIStaticText *add(
- irr::gui::IGUIEnvironment *guienv,
- const EnrichedString &text,
- const core::rect< s32 > &rectangle,
- bool border = false,
- bool wordWrap = true,
- irr::gui::IGUIElement *parent = NULL,
- s32 id = -1,
- bool fillBackground = false)
- {
- 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)
-{
- static_text->setText(text.c_str());
-}
-
-#endif
-
inline void setStaticText(irr::gui::IGUIStaticText *static_text, const wchar_t *text)
{
setStaticText(static_text, EnrichedString(text, static_text->getOverrideColor()));