1
0
Fork 0
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:
Jonathan Gordon 2008-05-22 06:23:15 +00:00
parent 5348f3d949
commit 32db049a2a

View file

@ -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);
} }