forked from len0rd/rockbox
simple fix for FS#7274 - selected item might not be shown when a list is drawn in paged scroll mode
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13602 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6131996538
commit
f3145ba07c
1 changed files with 6 additions and 1 deletions
|
@ -606,7 +606,12 @@ static void gui_list_select_at_offset(struct gui_list * gui_list, int offset)
|
|||
/* always select the first item of multi-line lists */
|
||||
offset -= offset%gui_list->selected_size;
|
||||
}
|
||||
if (offset < 0)
|
||||
if (offset == 0 && global_settings.scroll_paginated &&
|
||||
(gui_list->nb_items > gui_list->display->nb_lines - SHOW_LIST_TITLE))
|
||||
{
|
||||
gui_list->selected_item = gui_list->selected_item;
|
||||
}
|
||||
else if (offset < 0)
|
||||
gui_list_select_above(gui_list, -offset);
|
||||
else
|
||||
gui_list_select_below(gui_list, offset);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue