1
0
Fork 0
forked from len0rd/rockbox

Patch #1387569 by Stephan Wezel - page-down doesn't select the element before the last element

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8294 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2005-12-29 00:21:55 +00:00
parent bd2f678b70
commit 5caf36d122

View file

@ -103,7 +103,10 @@ void gui_list_put_selection_in_screen(struct gui_list * gui_list,
int nb_lines=gui_list->display->nb_lines;
if(put_from_end)
{
int list_end = gui_list->selected_item + SCROLL_LIMIT - 1;
int list_end = gui_list->selected_item + SCROLL_LIMIT;
if(list_end-1 == gui_list->nb_items)
list_end--;
if(list_end > gui_list->nb_items)
list_end = nb_lines;
gui_list->start_item = list_end - nb_lines;