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:
parent
bd2f678b70
commit
5caf36d122
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue