summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2011-10-17 13:46:31 +0000
committerManolo Gouy <Manolo>2011-10-17 13:46:31 +0000
commit3c8a18a57572676f834ceff3fa08654dfa7334be (patch)
tree64e7f8526e9e2dd1b25ea410db6660e51340888a /src
parent9f15516f5e1c2a72a62cc22faff4023a9bb870cd (diff)
Back to before r.9070 because this change produces badly drawn menu button labels.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9133 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Menu_Button.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Fl_Menu_Button.cxx b/src/Fl_Menu_Button.cxx
index 9f7bf6d8c..f77035697 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;
- 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());
+ 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;
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));