Skip to content

Commit

Permalink
Fl_Menu now draws the arrow more like other toolkits and 2.0
Browse files Browse the repository at this point in the history
(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
  • Loading branch information
michaelrsweet committed Feb 6, 2005
1 parent cb73c93 commit f02c5fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions 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
Expand Down
6 changes: 3 additions & 3 deletions 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).
//
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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$".
//

0 comments on commit f02c5fb

Please sign in to comment.