From f02c5fb4516e6fac11efb142f2f56a8e80baa288 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sun, 6 Feb 2005 02:03:12 +0000 Subject: Fl_Menu now draws the arrow more like other toolkits and 2.0 (STR #651) src/Fl_Menu.cxx: - Change submenu drawing code. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4035 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- CHANGES | 2 ++ src/Fl_Menu.cxx | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index e1a81b0d4..171c64c2c 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,8 @@ CHANGES IN FLTK 1.1.7 - Documentation fixes (STR #648, STR #692) + - Fl_Menu now draws the arrow more like other toolkits + and 2.0 (STR #651) - Fixed a VC++ compiler error in Fl_JPEG_Image.cxx (STR #676) - FL_SHADOW_BOX/FRAME drew outside of the bounding box diff --git a/src/Fl_Menu.cxx b/src/Fl_Menu.cxx index 23c09c0f4..470de2f68 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.37 2005/01/04 15:02:57 easysw Exp $" +// "$Id$" // // Menu code for the Fast Light Tool Kit (FLTK). // @@ -396,7 +396,7 @@ void menuwindow::drawentry(const Fl_Menu_Item* m, int n, int eraseit) { 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/2, y1+sz/2); + fl_polygon(x1+2, y1, x1+2, y1+sz, x1+sz/2+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.37 2005/01/04 15:02:57 easysw Exp $". +// End of "$Id$". // -- cgit v1.2.3