Fixed background (@B) option - was drawing background for selected items.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@982 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
d43eac1e38
commit
0bdb9aba79
@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Browser.cxx,v 1.9.2.7 1999/11/19 08:44:43 bill Exp $"
|
||||
// "$Id: Fl_Browser.cxx,v 1.9.2.8 2000/01/11 16:03:55 mike Exp $"
|
||||
//
|
||||
// Browser widget for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@ -333,8 +333,10 @@ void Fl_Browser::item_draw(void* v, int x, int y, int w, int h) const {
|
||||
case 'c': align = FL_ALIGN_CENTER; break;
|
||||
case 'r': align = FL_ALIGN_RIGHT; break;
|
||||
case 'B':
|
||||
if (!(((FL_BLINE*)v)->flags & SELECTED)) {
|
||||
fl_color((Fl_Color)strtol(str, &str, 10));
|
||||
fl_rectf(x, y, w1, h);
|
||||
} else strtol(str, &str, 10);
|
||||
break;
|
||||
case 'C':
|
||||
lcol = (Fl_Color)strtol(str, &str, 10);
|
||||
@ -491,5 +493,5 @@ int Fl_Browser::value() const {
|
||||
}
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Browser.cxx,v 1.9.2.7 1999/11/19 08:44:43 bill Exp $".
|
||||
// End of "$Id: Fl_Browser.cxx,v 1.9.2.8 2000/01/11 16:03:55 mike Exp $".
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user