diff options
| author | Bill Spitzak <spitzak@gmail.com> | 1999-03-07 08:51:44 +0000 |
|---|---|---|
| committer | Bill Spitzak <spitzak@gmail.com> | 1999-03-07 08:51:44 +0000 |
| commit | 51d37642ba4f9071ac178328cec7d421d4724187 (patch) | |
| tree | 6ac5e6ad6e0b210b2b8bf32168752787bdb46db4 /src/Fl_Menu.cxx | |
| parent | 6c793587e3305a4de1a080bb5663a356392c1075 (diff) | |
Contributed code for more accurate item_height() in Fl_Browser.
Fixed display of Fl_Choice yet again
Tried to remove warning egcs warning messages from Fl_Color_Chooser
Fl_Value_Input updates without user having to type Enter
git-svn-id: file:///fltk/svn/fltk/trunk@374 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Menu.cxx')
| -rw-r--r-- | src/Fl_Menu.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_Menu.cxx b/src/Fl_Menu.cxx index 4758b8364..1faf9addb 100644 --- a/src/Fl_Menu.cxx +++ b/src/Fl_Menu.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Menu.cxx,v 1.17 1999/02/25 19:09:10 bill Exp $" +// "$Id: Fl_Menu.cxx,v 1.18 1999/03/07 08:51:43 bill Exp $" // // Menu code for the Fast Light Tool Kit (FLTK). // @@ -175,7 +175,7 @@ void Fl_Menu_Item::draw(int x, int y, int w, int h, const Fl_Menu_* m, x += 14; w -= 14; } - fl_draw_shortcut = 1; + if (!fl_draw_shortcut) fl_draw_shortcut = 1; l.draw(x+3, y, w>6 ? w-6 : 0, h, FL_ALIGN_LEFT); fl_draw_shortcut = 0; } @@ -710,5 +710,5 @@ const Fl_Menu_Item* Fl_Menu_Item::test_shortcut() const { } // -// End of "$Id: Fl_Menu.cxx,v 1.17 1999/02/25 19:09:10 bill Exp $". +// End of "$Id: Fl_Menu.cxx,v 1.18 1999/03/07 08:51:43 bill Exp $". // |
