diff options
| -rw-r--r-- | CHANGES | 2 | ||||
| -rw-r--r-- | src/Fl_Menu.cxx | 8 |
2 files changed, 6 insertions, 4 deletions
@@ -1,5 +1,7 @@ CHANGES IN FLTK 1.1.7 + - Fl_Menu now draws sub-menu arrows like other toolkits + and FLTK 2.0 (STR #651) - Fixed a compiler warning in Fl_Window.H (STR #641) - Tooltips disabled shortcut processing (STR #643) - Fl::event_number() didn't always match the value sent diff --git a/src/Fl_Menu.cxx b/src/Fl_Menu.cxx index 7ac765b8a..b3a2ee71a 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.35 2004/11/23 01:48:25 matthiaswm Exp $" +// "$Id: Fl_Menu.cxx,v 1.18.2.12.2.36 2004/12/14 13:49:55 easysw Exp $" // // Menu code for the Fast Light Tool Kit (FLTK). // @@ -393,10 +393,10 @@ void menuwindow::drawentry(const Fl_Menu_Item* m, int n, int eraseit) { // the shortcuts and arrows assumme fl_color() was left set by draw(): if (m->submenu()) { - int sz = (hh-5)&-2; + int sz = (hh-7)&-2; int y1 = yy+(hh-sz)/2; int x1 = xx+ww-sz-3; - fl_polygon(x1, y1, x1, y1+sz, x1+sz, y1+sz/2); + fl_polygon(x1, y1, x1, y1+sz, x1+sz/2, y1+sz/2); } else if (m->shortcut_) { Fl_Font f = m->labelsize_ || m->labelfont_ ? (Fl_Font)m->labelfont_ : button ? button->textfont() : FL_HELVETICA; @@ -832,5 +832,5 @@ const Fl_Menu_Item* Fl_Menu_Item::test_shortcut() const { } // -// End of "$Id: Fl_Menu.cxx,v 1.18.2.12.2.35 2004/11/23 01:48:25 matthiaswm Exp $". +// End of "$Id: Fl_Menu.cxx,v 1.18.2.12.2.36 2004/12/14 13:49:55 easysw Exp $". // |
