From 3e85cc8bfccf63236e815eba64acd99fbe154daf Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 18 Oct 2011 14:49:43 +0200 Subject: New Label and LED widgets. --- plugingui/button.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugingui/button.cc') 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); } -- cgit v1.2.3