Skip to content

Commit ea9b241

Browse files
committed
Fix Irrlicht 1.9 support
1 parent 5c97eea commit ea9b241

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/gui/guiButton.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
using namespace irr;
1616

17-
#if (IRRLICHT_VERSION_MAJOR > 1 || IRRLICHT_VERSION_MINOR != 8 || IRRLICHT_VERSION_REVISION < 5)
17+
#if (IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR <= 8)
1818
namespace irr { namespace gui {
1919

2020
//! State of buttons used for drawing texture images.
@@ -142,9 +142,11 @@ class GUIButton : public gui::IGUIButton
142142
video::SColor color=video::SColor(255,255,255,255),
143143
bool loop=false, bool scale=false);
144144

145+
#if (IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR <= 8)
145146
void setSprite(gui::EGUI_BUTTON_STATE state, s32 index, video::SColor color, bool loop) override {
146147
setSprite(state, index, color, loop, false);
147148
}
149+
#endif
148150

149151
//! Get the sprite-index for the given state or -1 when no sprite is set
150152
virtual s32 getSpriteIndex(gui::EGUI_BUTTON_STATE state) const;

0 commit comments

Comments
 (0)