summaryrefslogtreecommitdiff
path: root/plugingui/button.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/button.cc
parentc1973bc4d4ec9d8d18a690359a2d649905e35264 (diff)
Only initialise Font once.
Diffstat (limited to 'plugingui/button.cc')
-rw-r--r--plugingui/button.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/plugingui/button.cc b/plugingui/button.cc
index baa3067..f547cba 100644
--- a/plugingui/button.cc
+++ b/plugingui/button.cc
@@ -126,7 +126,6 @@ void Button::repaintEvent(RepaintEvent* repaintEvent)
break;
}
- Font font(":fontemboss.png");
p.setColour(Colour(0.1));
p.drawText(width()/2-(text.length()*3)+(draw_state==up?0:1),
height()/2+5+1+(draw_state==up?0:1), font, text, true);