1
0
Fork 0
forked from len0rd/rockbox

Fix the last (?) of the selction wierdness, this time when moving at the begining of the list

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13520 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2007-05-30 02:08:35 +00:00
parent ebab48b5cc
commit 155e3d33d6

View file

@ -178,13 +178,11 @@ static void gui_list_put_selection_in_screen(struct gui_list * gui_list,
}
else
{
int list_start = gui_list->selected_item - SCROLL_LIMIT + 1;
if(list_start + nb_lines > gui_list->nb_items)
list_start = gui_list->nb_items - nb_lines;
int list_start = gui_list->selected_item - SCROLL_LIMIT - 1;
gui_list->start_item = list_start;
if(gui_list->start_item < 0)
gui_list->start_item = 0;
}
if(gui_list->start_item < 0)
gui_list->start_item = 0;
}
#ifdef HAVE_LCD_BITMAP