Move the old api out of the core and into the plugin lib.

ew plugins shuold use the new api and not this one.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13537 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2007-06-03 04:06:58 +00:00
parent bbde44506b
commit 20a8a9a3c8

View file

@ -186,6 +186,10 @@ static void gui_list_put_selection_in_screen(struct gui_list * gui_list,
list_end = gui_list->nb_items;
gui_list->start_item = list_end - nb_lines;
}
else if (gui_list->nb_items-gui_list->selected_item < nb_lines)
{
gui_list->start_item = gui_list->nb_items - nb_lines;
}
else
{
int list_start = gui_list->selected_item - SCROLL_LIMIT - 1;