Last list commit for a while. fix the multi-item lists at the very end of the list
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13523 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0178568325
commit
dfb071d92e
1 changed files with 2 additions and 1 deletions
|
@ -557,7 +557,8 @@ static void gui_list_select_at_offset(struct gui_list * gui_list, int offset)
|
||||||
{
|
{
|
||||||
if (gui_list->nb_items >= nb_lines)
|
if (gui_list->nb_items >= nb_lines)
|
||||||
gui_list->start_item = gui_list->nb_items - nb_lines;
|
gui_list->start_item = gui_list->nb_items - nb_lines;
|
||||||
gui_list->selected_item = gui_list->nb_items - 1;
|
gui_list->selected_item = gui_list->nb_items -
|
||||||
|
gui_list->selected_size;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue