diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Browser_.cxx | 5 | ||||
| -rw-r--r-- | src/Fl_Clock.cxx | 12 |
2 files changed, 11 insertions, 6 deletions
diff --git a/src/Fl_Browser_.cxx b/src/Fl_Browser_.cxx index fbbc3bfa5..84c12fe69 100644 --- a/src/Fl_Browser_.cxx +++ b/src/Fl_Browser_.cxx @@ -3,7 +3,7 @@ // // Base Browser widget class for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2010 by Bill Spitzak and others. +// Copyright 1998-2016 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -714,8 +714,9 @@ int Fl_Browser_::handle(int event) { if (type()==FL_HOLD_BROWSER) { switch (Fl::event_key()) { case FL_Down: - while ((l = item_next(l))) + while ((l = item_next(l))) { if (item_height(l)>0) {select_only(l, when()); break;} + } return 1; case FL_Up: while ((l = item_prev(l))) { diff --git a/src/Fl_Clock.cxx b/src/Fl_Clock.cxx index 8882fdf2d..46b326181 100644 --- a/src/Fl_Clock.cxx +++ b/src/Fl_Clock.cxx @@ -35,10 +35,14 @@ static void drawhand(double ang,const float v[][2],Fl_Color fill,Fl_Color line) { fl_push_matrix(); fl_rotate(ang); - fl_color(fill); fl_begin_polygon(); - int i; for (i=0; i<4; i++) fl_vertex(v[i][0],v[i][1]); fl_end_polygon(); - fl_color(line); fl_begin_loop(); - for (i=0; i<4; i++) fl_vertex(v[i][0],v[i][1]); fl_end_loop(); + fl_color(fill); + fl_begin_polygon(); + int i; for (i=0; i<4; i++) fl_vertex(v[i][0],v[i][1]); + fl_end_polygon(); + fl_color(line); + fl_begin_loop(); + for (i=0; i<4; i++) fl_vertex(v[i][0],v[i][1]); + fl_end_loop(); fl_pop_matrix(); } |
