summaryrefslogtreecommitdiff
path: root/plugingui/button.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2011-10-18 14:49:43 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2011-10-18 14:49:43 +0200
commit3e85cc8bfccf63236e815eba64acd99fbe154daf (patch)
treec3988ded4857263cebff1515999fa5f44aa39b85 /plugingui/button.cc
parentef47c71a29292ff9114a67d782e526ac662a1f32 (diff)
New Label and LED widgets.
Diffstat (limited to 'plugingui/button.cc')
-rw-r--r--plugingui/button.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugingui/button.cc b/plugingui/button.cc
index a5c6947..a833ad3 100644
--- a/plugingui/button.cc
+++ b/plugingui/button.cc
@@ -60,11 +60,11 @@ void Button::repaint(RepaintEvent *e)
p.drawRectangle(0,0,width()-1,height()-1);
p.setColour(Colour(0.8));
- if(state == down) {
+ if(state == up) {
p.drawLine(1,1,1,height());
p.drawLine(1,1,width(),1);
}
- if(state == up) {
+ if(state == down) {
p.drawLine(width()-2,0, width()-2,height()-2);
p.drawLine(width()-2,height()-2,0, height()-2);
}