summaryrefslogtreecommitdiff
path: root/src/irrlicht_changes
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2020-05-17 01:03:33 +0200
committersfan5 <sfan5@live.de>2021-03-09 21:53:17 +0100
commit3579dd21867598ff30867ebd68b690c85ba14f9b (patch)
tree7df73434ea692d49feca32017a4f6e4f19d347aa /src/irrlicht_changes
parent13b50f55a45b8e68a787e7793d5e6e612d95a5a0 (diff)
downloadminetest-3579dd21867598ff30867ebd68b690c85ba14f9b.tar.gz
minetest-3579dd21867598ff30867ebd68b690c85ba14f9b.tar.bz2
minetest-3579dd21867598ff30867ebd68b690c85ba14f9b.zip
Restore Irrlicht 1.9 support
Diffstat (limited to 'src/irrlicht_changes')
-rw-r--r--src/irrlicht_changes/static_text.cpp6
-rw-r--r--src/irrlicht_changes/static_text.h5
2 files changed, 11 insertions, 0 deletions
diff --git a/src/irrlicht_changes/static_text.cpp b/src/irrlicht_changes/static_text.cpp
index bf61cd64e..a8cc33352 100644
--- a/src/irrlicht_changes/static_text.cpp
+++ b/src/irrlicht_changes/static_text.cpp
@@ -255,6 +255,12 @@ video::SColor StaticText::getOverrideColor() const
return ColoredText.getDefaultColor();
}
+#if IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR > 8
+video::SColor StaticText::getActiveColor() const
+{
+ return getOverrideColor();
+}
+#endif
//! Sets if the static text should use the overide color or the
//! color in the gui skin.
diff --git a/src/irrlicht_changes/static_text.h b/src/irrlicht_changes/static_text.h
index 1f111ea56..786129d57 100644
--- a/src/irrlicht_changes/static_text.h
+++ b/src/irrlicht_changes/static_text.h
@@ -140,6 +140,11 @@ namespace gui
virtual video::SColor getOverrideColor() const;
#endif
+ #if IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR > 8
+ //! Gets the currently used text color
+ virtual video::SColor getActiveColor() const;
+ #endif
+
//! Sets if the static text should use the overide color or the
//! color in the gui skin.
virtual void enableOverrideColor(bool enable);