diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-01-20 13:51:17 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-01-20 13:51:17 +0100 |
| commit | ab5cc5866dd5e5f885d06718674b7afd4740bc96 (patch) | |
| tree | 5d68736f0ebd3ffb8d055bdbe1223dfb190d0304 /src/Fl_Scroll.cxx | |
| parent | f4620329f16ed92e938a42d6c5803ed5061f1b45 (diff) | |
STR 3408: Fl_Scroll draws background inactive if needed
Diffstat (limited to 'src/Fl_Scroll.cxx')
| -rw-r--r-- | src/Fl_Scroll.cxx | 7 |
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--;) { |
