summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2004-12-14 13:49:55 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2004-12-14 13:49:55 +0000
commitf912892305a5a8749bd8caa560d88e889e70eccc (patch)
tree3a51a2e9c17007992d03d3d78f222eb8cfea1691 /src
parent24a940f11d53b2eb60e466bdfc6aff7368cffe9c (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Menu.cxx8
1 files changed, 4 insertions, 4 deletions
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 $".
//