diff options
| author | Dan Everton <dan@iocaine.org> | 2006-02-13 20:48:44 +0000 |
|---|---|---|
| committer | Dan Everton <dan@iocaine.org> | 2006-02-13 20:48:44 +0000 |
| commit | dd39e33663a4b617c3f88f48845681e772386a7f (patch) | |
| tree | 84955cc1971c13b2a990f3a392465c0ebed48133 | |
| parent | d1fbd12189da64cfda3226175142f850cb6d1b5c (diff) | |
| download | rockbox-dd39e33663a4b617c3f88f48845681e772386a7f.zip rockbox-dd39e33663a4b617c3f88f48845681e772386a7f.tar.gz rockbox-dd39e33663a4b617c3f88f48845681e772386a7f.tar.bz2 rockbox-dd39e33663a4b617c3f88f48845681e772386a7f.tar.xz | |
Don't leave whitespace on last screen when in paged scrolling mode.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8685 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/gui/list.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c index 743e603..b53009a 100644 --- a/apps/gui/list.c +++ b/apps/gui/list.c @@ -300,7 +300,11 @@ void gui_list_select_next(struct gui_list * gui_list) /* When we reach the bottom of the list * we jump to a new page if there are more items*/ if( item_pos > nb_lines-1 && end_item < gui_list->nb_items ) + { gui_list->start_item = gui_list->selected_item; + if ( gui_list->start_item > gui_list->nb_items-nb_lines ) + gui_list->start_item = gui_list->nb_items-nb_lines; + } } else { |