summaryrefslogtreecommitdiff
path: root/plugingui/knob.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-11-20 20:03:18 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2015-11-20 20:03:18 +0100
commit3734f5d3c741e877c49ff1c99ce67cb4a764023b (patch)
tree5fcbcc3d084d5c8d49bd40d726481ca92d54bd5e /plugingui/knob.cc
parentc1973bc4d4ec9d8d18a690359a2d649905e35264 (diff)
Only initialise Font once.
Diffstat (limited to 'plugingui/knob.cc')
-rw-r--r--plugingui/knob.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/plugingui/knob.cc b/plugingui/knob.cc
index 7b784ab..ab2eca9 100644
--- a/plugingui/knob.cc
+++ b/plugingui/knob.cc
@@ -152,7 +152,6 @@ void Knob::repaintEvent(RepaintEvent* repaintEvent)
char buf[64];
sprintf(buf, "%.2f", currentValue * maximum);
- Font font;
p.drawText(center_x - font.textWidth(buf) / 2 + 1,
center_y + font.textHeight(buf) / 2 + 1, font, buf);