summaryrefslogtreecommitdiff
path: root/src/Fl_Menu.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2003-05-18 22:12:24 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2003-05-18 22:12:24 +0000
commit8a2aa0a0d1876c88953de29e0709e290cc8daa97 (patch)
treeaaba419f297ab24e7033596a8a1bb22c2c856079 /src/Fl_Menu.cxx
parent180e2985377981d5d8ac2f668f371ab841bbfca2 (diff)
Add thin up box with plastic style.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2981 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
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 $".
//