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 /apps/gui/list.c | |
parent | d1fbd12189da64cfda3226175142f850cb6d1b5c (diff) | |
download | rockbox-dd39e33663a4b617c3f88f48845681e772386a7f.tar.gz rockbox-dd39e33663a4b617c3f88f48845681e772386a7f.zip |
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
Diffstat (limited to 'apps/gui/list.c')
-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 743e603a02..b53009a976 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) | |||
300 | /* When we reach the bottom of the list | 300 | /* When we reach the bottom of the list |
301 | * we jump to a new page if there are more items*/ | 301 | * we jump to a new page if there are more items*/ |
302 | if( item_pos > nb_lines-1 && end_item < gui_list->nb_items ) | 302 | if( item_pos > nb_lines-1 && end_item < gui_list->nb_items ) |
303 | { | ||
303 | gui_list->start_item = gui_list->selected_item; | 304 | gui_list->start_item = gui_list->selected_item; |
305 | if ( gui_list->start_item > gui_list->nb_items-nb_lines ) | ||
306 | gui_list->start_item = gui_list->nb_items-nb_lines; | ||
307 | } | ||
304 | } | 308 | } |
305 | else | 309 | else |
306 | { | 310 | { |