summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Fl_Scroll.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Fl_Scroll.cxx b/src/Fl_Scroll.cxx
index bee0d7120..e32c5bda5 100644
--- a/src/Fl_Scroll.cxx
+++ b/src/Fl_Scroll.cxx
@@ -177,9 +177,12 @@ void Fl_Scroll::draw_clip(void* v,int X, int Y, int W, int H) {
}
default :
+ if (s->active_r())
fl_color(s->color());
- fl_rectf(X,Y,W,H);
- break;
+ else
+ fl_color(fl_inactive(s->color()));
+ fl_rectf(X,Y,W,H);
+ break;
}
Fl_Widget*const* a = s->array();
for (int i=s->children()-2; i--;) {