diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2007-05-29 13:06:41 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2007-05-29 13:06:41 +0000 |
| commit | 6fd3d96309f73e31168a900e592f5d94231762a4 (patch) | |
| tree | f20e61215ee0f48ea6970da5864fbe3faab41357 | |
| parent | 20202017f4c2a004ddeb62fc501f74232ed7e0b8 (diff) | |
| download | rockbox-6fd3d96309f73e31168a900e592f5d94231762a4.zip rockbox-6fd3d96309f73e31168a900e592f5d94231762a4.tar.gz rockbox-6fd3d96309f73e31168a900e592f5d94231762a4.tar.bz2 rockbox-6fd3d96309f73e31168a900e592f5d94231762a4.tar.xz | |
fix selection wierdness when scrolling down at the end of lists
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13514 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/gui/list.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c index da79a69..c5acfbb 100644 --- a/apps/gui/list.c +++ b/apps/gui/list.c @@ -172,11 +172,8 @@ static void gui_list_put_selection_in_screen(struct gui_list * gui_list, if(put_from_end) { int list_end = gui_list->selected_item + SCROLL_LIMIT; - - if(list_end-1 == gui_list->nb_items) - list_end--; - if(list_end > gui_list->nb_items) - list_end = nb_lines; + if(list_end >= gui_list->nb_items) + list_end = gui_list->nb_items; gui_list->start_item = list_end - nb_lines; } else |