summaryrefslogtreecommitdiff
path: root/plugingui/button.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-11-07 10:39:46 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2015-11-07 10:39:46 +0100
commita65ca7af57feaf7a4ea73f7e071a72eb9b3a1e24 (patch)
tree6cf9fa3b8b57513b8eae030bdc6e1a18495d7e75 /plugingui/button.cc
parent60109b8a737059058d2b0664c7ea88ec501490f7 (diff)
Refactored Painter.
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;
}