summaryrefslogtreecommitdiff
path: root/src/Fl_Browser_.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_Browser_.cxx')
-rw-r--r--src/Fl_Browser_.cxx13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/Fl_Browser_.cxx b/src/Fl_Browser_.cxx
index 93d87080b..d57ed6df3 100644
--- a/src/Fl_Browser_.cxx
+++ b/src/Fl_Browser_.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Browser_.cxx,v 1.10.2.9 2000/03/15 19:14:57 mike Exp $"
+// "$Id: Fl_Browser_.cxx,v 1.10.2.10 2000/03/17 09:38:18 bill Exp $"
//
// Base Browser widget class for the Fast Light Tool Kit (FLTK).
//
@@ -311,15 +311,14 @@ J1:
fl_color(active_r() ? selection_color() : inactive(selection_color()));
fl_rectf(X, yy+Y, W, hh);
} else if (!(damage()&FL_DAMAGE_ALL)) {
- fl_color(active_r() ? color() : inactive(color()));
+ fl_color(color());
fl_rectf(X, yy+Y, W, hh);
}
- if (type() == FL_MULTI_BROWSER && l == selection_) {
+ item_draw(l, X-hposition_, yy+Y, W+hposition_, hh);
+ if (l == selection_) {
fl_color(active_r() ? textcolor() : inactive(textcolor()));
fl_rect(X+1, yy+Y, W-2, hh);
}
- item_draw(l, X-hposition_, yy+Y, W+hposition_, hh);
- if (l == selection_) fl_rect(X, yy+Y, W, hh);
int w = item_width(l);
if (w > max_width) {max_width = w; max_width_item = l;}
}
@@ -327,7 +326,7 @@ J1:
}
// erase the area below last line:
if (!(damage()&FL_DAMAGE_ALL) && yy < H) {
- fl_color(active_r() ? color() : inactive(color()));
+ fl_color(color());
fl_rectf(X, yy+Y, W, H-yy);
}
fl_pop_clip();
@@ -701,5 +700,5 @@ void Fl_Browser_::item_select(void*, int) {}
int Fl_Browser_::item_selected(void* l) const {return l==selection_;}
//
-// End of "$Id: Fl_Browser_.cxx,v 1.10.2.9 2000/03/15 19:14:57 mike Exp $".
+// End of "$Id: Fl_Browser_.cxx,v 1.10.2.10 2000/03/17 09:38:18 bill Exp $".
//