summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--FL/Fl_Menu_.H4
-rw-r--r--src/Fl_Menu.cxx12
2 files changed, 2 insertions, 14 deletions
diff --git a/FL/Fl_Menu_.H b/FL/Fl_Menu_.H
index 96e135692..0c5fa9a68 100644
--- a/FL/Fl_Menu_.H
+++ b/FL/Fl_Menu_.H
@@ -228,9 +228,7 @@ public:
/**
This box type is used to surround the currently-selected items in the
- menus. If this is FL_NO_BOX then it acts like
- FL_THIN_UP_BOX and selection_color() acts like
- FL_WHITE, for back compatibility.
+ menus.
*/
Fl_Boxtype down_box() const {return (Fl_Boxtype)down_box_;}
/** Sets the box type used to surround the currently-selected items in the menus. */
diff --git a/src/Fl_Menu.cxx b/src/Fl_Menu.cxx
index 0e7169a23..f7a763327 100644
--- a/src/Fl_Menu.cxx
+++ b/src/Fl_Menu.cxx
@@ -285,17 +285,7 @@ void Fl_Menu_Item::draw(int x, int y, int w, int h, const Fl_Menu_* m,
if (selected) {
Fl_Color r = m ? m->selection_color() : FL_SELECTION_COLOR;
Fl_Boxtype b = m && m->down_box() ? m->down_box() : FL_FLAT_BOX;
- if (fl_contrast(r, color) != r) { // back compatibility boxtypes
- if (selected == 2) { // menu title
- r = color;
- b = m ? m->box() : FL_UP_BOX;
- } else {
- r = (Fl_Color)(FL_COLOR_CUBE-1); // white
- l.color = fl_contrast((Fl_Color)labelcolor_, r);
- }
- } else {
- l.color = fl_contrast((Fl_Color)labelcolor_, r);
- }
+ l.color = fl_contrast((Fl_Color)labelcolor_, r);
if (selected == 2) { // menu title
fl_draw_box(b, x, y, w, h, r);
x += 3;