From ab5cc5866dd5e5f885d06718674b7afd4740bc96 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 20 Jan 2023 13:51:17 +0100 Subject: [PATCH] STR 3408: Fl_Scroll draws background inactive if needed --- src/Fl_Scroll.cxx | 7 +++++-- 1 file 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--;) {