summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2019-09-06 18:29:29 +0200
committersfan5 <sfan5@live.de>2019-09-06 18:29:29 +0200
commitea9b241c13e9982acb993e616fa1db685ffba5cb (patch)
treebad65f7980d5aaaa10ad465b5197352bf4c45743
parent5c97eeabace3256d4f50c9d9c7776fb360c2077c (diff)
downloadminetest-ea9b241c13e9982acb993e616fa1db685ffba5cb.tar.gz
minetest-ea9b241c13e9982acb993e616fa1db685ffba5cb.tar.bz2
minetest-ea9b241c13e9982acb993e616fa1db685ffba5cb.zip
Fix Irrlicht 1.9 support
-rw-r--r--src/gui/guiButton.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/guiButton.h b/src/gui/guiButton.h
index 04c24d40e..b6b0c126c 100644
--- a/src/gui/guiButton.h
+++ b/src/gui/guiButton.h
@@ -14,7 +14,7 @@
using namespace irr;
-#if (IRRLICHT_VERSION_MAJOR > 1 || IRRLICHT_VERSION_MINOR != 8 || IRRLICHT_VERSION_REVISION < 5)
+#if (IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR <= 8)
namespace irr { namespace gui {
//! State of buttons used for drawing texture images.
@@ -142,9 +142,11 @@ public:
video::SColor color=video::SColor(255,255,255,255),
bool loop=false, bool scale=false);
+#if (IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR <= 8)
void setSprite(gui::EGUI_BUTTON_STATE state, s32 index, video::SColor color, bool loop) override {
setSprite(state, index, color, loop, false);
}
+#endif
//! Get the sprite-index for the given state or -1 when no sprite is set
virtual s32 getSpriteIndex(gui::EGUI_BUTTON_STATE state) const;