From dd39e33663a4b617c3f88f48845681e772386a7f Mon Sep 17 00:00:00 2001 From: Dan Everton Date: Mon, 13 Feb 2006 20:48:44 +0000 Subject: 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 --- apps/gui/list.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/gui/list.c') 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 { -- cgit v1.2.3