summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Everton <dan@iocaine.org>2006-02-13 20:48:44 +0000
committerDan Everton <dan@iocaine.org>2006-02-13 20:48:44 +0000
commitdd39e33663a4b617c3f88f48845681e772386a7f (patch)
tree84955cc1971c13b2a990f3a392465c0ebed48133
parentd1fbd12189da64cfda3226175142f850cb6d1b5c (diff)
downloadrockbox-dd39e33663a4b617c3f88f48845681e772386a7f.tar.gz
rockbox-dd39e33663a4b617c3f88f48845681e772386a7f.tar.bz2
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
-rw-r--r--apps/gui/list.c4
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)
/* 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
{