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:
Michael R Sweet 2000-01-11 16:03:55 +00:00
parent d43eac1e38
commit 0bdb9aba79

View File

@ -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). // 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 'c': align = FL_ALIGN_CENTER; break;
case 'r': align = FL_ALIGN_RIGHT; break; case 'r': align = FL_ALIGN_RIGHT; break;
case 'B': case 'B':
fl_color((Fl_Color)strtol(str, &str, 10)); if (!(((FL_BLINE*)v)->flags & SELECTED)) {
fl_rectf(x, y, w1, h); fl_color((Fl_Color)strtol(str, &str, 10));
fl_rectf(x, y, w1, h);
} else strtol(str, &str, 10);
break; break;
case 'C': case 'C':
lcol = (Fl_Color)strtol(str, &str, 10); 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 $".
// //