\r
using namespace irr;\r
\r
-#if (IRRLICHT_VERSION_MAJOR > 1 || IRRLICHT_VERSION_MINOR != 8 || IRRLICHT_VERSION_REVISION < 5)\r
+#if (IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR <= 8)\r
namespace irr { namespace gui {\r
\r
//! State of buttons used for drawing texture images.\r
video::SColor color=video::SColor(255,255,255,255),\r
bool loop=false, bool scale=false);\r
\r
+#if (IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR <= 8)\r
void setSprite(gui::EGUI_BUTTON_STATE state, s32 index, video::SColor color, bool loop) override {\r
setSprite(state, index, color, loop, false);\r
}\r
+#endif\r
\r
//! Get the sprite-index for the given state or -1 when no sprite is set\r
virtual s32 getSpriteIndex(gui::EGUI_BUTTON_STATE state) const;\r