summaryrefslogtreecommitdiff
path: root/plugingui/knob.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/knob.cc')
-rw-r--r--plugingui/knob.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugingui/knob.cc b/plugingui/knob.cc
index 360766e..535448b 100644
--- a/plugingui/knob.cc
+++ b/plugingui/knob.cc
@@ -144,10 +144,10 @@ void Knob::repaintEvent(RepaintEvent *e)
int center_x = width() / 2;
int center_y = height() / 2;
- Painter p(this);
+ Painter p(*this);
p.clear();
- p.drawImageStretched(0, 0, &img_knob, diameter, diameter);
+ p.drawImageStretched(0, 0, img_knob, diameter, diameter);
char buf[64];
sprintf(buf, "%.2f", currentValue * maximum);