summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>1998-11-18 18:01:21 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>1998-11-18 18:01:21 +0000
commitc34eeb0d5531c0043066896d32a0d1b39a047901 (patch)
treed24209c33cfe7b71765ef3bfea93d4be48365434 /src
parent402527311e6d96655bd8fc32e7560b99c7c5cd9c (diff)
Fixed slider drawing bug.
git-svn-id: file:///fltk/svn/fltk/trunk@92 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Slider.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_Slider.cxx b/src/Fl_Slider.cxx
index 2fbdb71f0..a9d4e922f 100644
--- a/src/Fl_Slider.cxx
+++ b/src/Fl_Slider.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Slider.cxx,v 1.5 1998/11/18 17:26:44 mike Exp $"
+// "$Id: Fl_Slider.cxx,v 1.6 1998/11/18 18:01:21 mike Exp $"
//
// Slider widget for the Fast Light Tool Kit (FLTK).
//
@@ -85,7 +85,7 @@ int Fl_Slider::scrollvalue(int p, int w, int t, int l) {
void Fl_Slider::draw_bg(int x, int y, int w, int h) {
draw_box(box(), x, y, w, h, color());
int BW = Fl::box_dx(box());
- int black = active() ? FL_BLACK : inactive(FL_BLACK);
+ Fl_Color black = active_r() ? FL_BLACK : FL_INACTIVE_COLOR;
if (type() == FL_VERT_NICE_SLIDER) {
draw_box(FL_THIN_DOWN_BOX, x+w/2-2, y+BW, 4, h-2*BW, black);
} else if (type() == FL_HOR_NICE_SLIDER) {
@@ -228,5 +228,5 @@ int Fl_Slider::handle(int event) {
}
//
-// End of "$Id: Fl_Slider.cxx,v 1.5 1998/11/18 17:26:44 mike Exp $".
+// End of "$Id: Fl_Slider.cxx,v 1.6 1998/11/18 18:01:21 mike Exp $".
//