From f912892305a5a8749bd8caa560d88e889e70eccc Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 14 Dec 2004 13:49:55 +0000 Subject: Fl_Menu now draws sub-menu arrows like other toolkits and FLTK 2.0 (STR #651) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3941 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Menu.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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 $". // -- cgit v1.2.3