diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Menu_Button.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Fl_Menu_Button.cxx b/src/Fl_Menu_Button.cxx index f77035697..9f7bf6d8c 100644 --- a/src/Fl_Menu_Button.cxx +++ b/src/Fl_Menu_Button.cxx @@ -25,13 +25,13 @@ static Fl_Menu_Button *pressed_menu_button_ = 0; void Fl_Menu_Button::draw() { if (!box() || type()) return; - draw_box(pressed_menu_button_ == this ? fl_down(box()) : box(), color()); - draw_label(); - if (Fl::focus() == this) draw_focus(); - // ** if (box() == FL_FLAT_BOX) return; // for XForms compatibility int H = (labelsize()-3)&-2; int X = x()+w()-H*2; int Y = y()+(h()-H)/2; + draw_box(pressed_menu_button_ == this ? fl_down(box()) : box(), color()); + draw_label(x(), y(), X-x()+2, h()); + if (Fl::focus() == this) draw_focus(); + // ** if (box() == FL_FLAT_BOX) return; // for XForms compatibility fl_color(active_r() ? FL_DARK3 : fl_inactive(FL_DARK3)); fl_line(X+H/2, Y+H, X, Y, X+H, Y); fl_color(active_r() ? FL_LIGHT3 : fl_inactive(FL_LIGHT3)); |
