summaryrefslogtreecommitdiff
path: root/plugingui/button.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/button.cc')
-rw-r--r--plugingui/button.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugingui/button.cc b/plugingui/button.cc
index be5f82e..9248242 100644
--- a/plugingui/button.cc
+++ b/plugingui/button.cc
@@ -106,7 +106,7 @@ void Button::buttonEvent(ButtonEvent *e)
void Button::repaintEvent(RepaintEvent *e)
{
- Painter p(this);
+ Painter p(*this);
p.clear();
@@ -119,10 +119,10 @@ void Button::repaintEvent(RepaintEvent *e)
switch(draw_state) {
case up:
- p.drawBox(0, 0, &box_up, w, h);
+ p.drawBox(0, 0, box_up, w, h);
break;
case down:
- p.drawBox(0, 0, &box_down, w, h);
+ p.drawBox(0, 0, box_down, w, h);
break;
}