summaryrefslogtreecommitdiff
path: root/src/Fl_Adjuster.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>1998-12-02 18:43:28 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>1998-12-02 18:43:28 +0000
commit9c208650bf651d6d38780e55c34b8f870ebc3fe1 (patch)
tree3ea68eb460652a38f1abbf8b3ede9353b45517a8 /src/Fl_Adjuster.cxx
parente4c69fd44a49f769399856f1c00b3817726f0eab (diff)
Fixed inactive drawing code...
git-svn-id: file:///fltk/svn/fltk/trunk@121 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Adjuster.cxx')
-rw-r--r--src/Fl_Adjuster.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Fl_Adjuster.cxx b/src/Fl_Adjuster.cxx
index f962692f1..77030c944 100644
--- a/src/Fl_Adjuster.cxx
+++ b/src/Fl_Adjuster.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Adjuster.cxx,v 1.3 1998/10/21 14:19:54 mike Exp $"
+// "$Id: Fl_Adjuster.cxx,v 1.4 1998/12/02 18:43:26 mike Exp $"
//
// Adjuster widget for the Fast Light Tool Kit (FLTK).
//
@@ -51,7 +51,10 @@ void Fl_Adjuster::draw() {
draw_box(drag==1?FL_DOWN_BOX:box(), x(), y()+2*dy, W, H, color());
draw_box(drag==2?FL_DOWN_BOX:box(), x()+dx, y()+dy, W, H, color());
draw_box(drag==3?FL_DOWN_BOX:box(), x()+2*dx, y(), W, H, color());
- fl_color(selection_color());
+ if (active_r())
+ fl_color(selection_color());
+ else
+ fl_color(inactive(selection_color()));
fastarrow.draw(x()+(W-fastarrow_width)/2,
y()+2*dy+(H-fastarrow_height)/2, W, H);
mediumarrow.draw(x()+dx+(W-mediumarrow_width)/2,
@@ -127,5 +130,5 @@ Fl_Adjuster::Fl_Adjuster(int x, int y, int w, int h, const char* l)
}
//
-// End of "$Id: Fl_Adjuster.cxx,v 1.3 1998/10/21 14:19:54 mike Exp $".
+// End of "$Id: Fl_Adjuster.cxx,v 1.4 1998/12/02 18:43:26 mike Exp $".
//