summaryrefslogtreecommitdiff
path: root/plugingui/button.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-03-13 21:03:14 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2013-03-13 21:03:14 +0100
commit37471a3486a566159bcf0c7ebd68f9064287d0fa (patch)
tree42cc7114a13ff564575bbdd5f9c920f190f079b4 /plugingui/button.cc
parentb59d65d3c5606b33727cc445555704bb0e203b55 (diff)
Use new painter clear function.
Diffstat (limited to 'plugingui/button.cc')
-rw-r--r--plugingui/button.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugingui/button.cc b/plugingui/button.cc
index b65f318..85d5425 100644
--- a/plugingui/button.cc
+++ b/plugingui/button.cc
@@ -64,7 +64,9 @@ void GUI::Button::repaintEvent(GUI::RepaintEvent *e)
Painter p(this);
- float alpha = 0.8;
+ p.clear();
+
+ float alpha = 0.9;
if(hasKeyboardFocus()) {
p.setColour(Colour(0.6, alpha));