diff options
Diffstat (limited to 'plugingui/slider.cc')
-rw-r--r-- | plugingui/slider.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugingui/slider.cc b/plugingui/slider.cc index 953c8e6..311497a 100644 --- a/plugingui/slider.cc +++ b/plugingui/slider.cc @@ -77,7 +77,7 @@ void GUI::Slider::mouseMoveEvent(MouseMoveEvent *e) void GUI::Slider::buttonEvent(ButtonEvent *e) { - if(e->direction == 1) { + if(e->direction == ButtonEvent::Down) { state = down; val = maximum / (float)width() * (float)e->x; @@ -87,7 +87,7 @@ void GUI::Slider::buttonEvent(ButtonEvent *e) if(handler) handler(ptr); repaintEvent(NULL); } - if(e->direction == -1) { + if(e->direction == ButtonEvent::Up) { state = up; val = maximum / (float)width() * (float)e->x; |