forked from len0rd/rockbox
fix FS#9020 and make scrolling down in lists a bit more consistant with scrolling up
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17602 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5348f3d949
commit
32db049a2a
1 changed files with 1 additions and 1 deletions
|
@ -274,7 +274,7 @@ static void gui_list_put_selection_on_screen(struct gui_synclist * gui_list,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
int top_of_screen = gui_list->selected_item - SCROLL_LIMIT;
|
int top_of_screen = gui_list->selected_item - SCROLL_LIMIT + 1;
|
||||||
int temp = MIN(top_of_screen, gui_list->nb_items - nb_lines);
|
int temp = MIN(top_of_screen, gui_list->nb_items - nb_lines);
|
||||||
gui_list->start_item[screen] = MAX(0, temp);
|
gui_list->start_item[screen] = MAX(0, temp);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue