STR 3408: Fl_Scroll draws background inactive if needed

This commit is contained in:
Matthias Melcher 2023-01-20 13:51:17 +01:00
parent f4620329f1
commit ab5cc5866d

View File

@ -177,9 +177,12 @@ void Fl_Scroll::draw_clip(void* v,int X, int Y, int W, int H) {
} }
default : default :
if (s->active_r())
fl_color(s->color()); fl_color(s->color());
fl_rectf(X,Y,W,H); else
break; fl_color(fl_inactive(s->color()));
fl_rectf(X,Y,W,H);
break;
} }
Fl_Widget*const* a = s->array(); Fl_Widget*const* a = s->array();
for (int i=s->children()-2; i--;) { for (int i=s->children()-2; i--;) {