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
This commit is contained in:
parent
d1fbd12189
commit
dd39e33663
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue