summaryrefslogtreecommitdiff
path: root/src/Fl_Menu.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_Menu.cxx')
-rw-r--r--src/Fl_Menu.cxx14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/Fl_Menu.cxx b/src/Fl_Menu.cxx
index f16212ef9..ce2bb6d25 100644
--- a/src/Fl_Menu.cxx
+++ b/src/Fl_Menu.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Menu.cxx,v 1.18.2.12.2.23 2003/01/30 21:42:05 easysw Exp $"
+// "$Id: Fl_Menu.cxx,v 1.18.2.12.2.24 2003/05/18 22:12:20 easysw Exp $"
//
// Menu code for the Fast Light Tool Kit (FLTK).
//
@@ -341,8 +341,14 @@ void menuwindow::drawentry(const Fl_Menu_Item* m, int n, int eraseit) {
int hh = itemheight - LEADING;
if (eraseit && n != selected) {
- fl_color(button && !Fl::scheme() ? button->color() : FL_GRAY);
- fl_rectf(xx+1, yy-(LEADING-2)/2, ww-2, hh+(LEADING-2));
+ if (Fl::scheme()) {
+ fl_push_clip(xx+1, yy-(LEADING-2)/2, ww-2, hh+(LEADING-2));
+ draw_box(box(), 0, 0, w(), h(), color());
+ fl_pop_clip();
+ } else {
+ fl_color(button ? button->color() : FL_GRAY);
+ fl_rectf(xx+1, yy-(LEADING-2)/2, ww-2, hh+(LEADING-2));
+ }
}
m->draw(xx, yy, ww, hh, button, n==selected);
@@ -784,5 +790,5 @@ const Fl_Menu_Item* Fl_Menu_Item::test_shortcut() const {
}
//
-// End of "$Id: Fl_Menu.cxx,v 1.18.2.12.2.23 2003/01/30 21:42:05 easysw Exp $".
+// End of "$Id: Fl_Menu.cxx,v 1.18.2.12.2.24 2003/05/18 22:12:20 easysw Exp $".
//