Alternate fix for the bug fixed by FS#9163, the selection in the playlist viewer was one line too low, which caused it to be off-screen if the last item was selected. The cause was that the selected item was set before the list title, fixed by re-calculating the position of the selected item after setting the title.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18797 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7a6aeb8713
commit
68f6e83eb0
1 changed files with 2 additions and 1 deletions
|
@ -101,6 +101,7 @@ static struct viewport parent[NB_SCREENS] =
|
||||||
void list_init_viewports(struct gui_synclist *list)
|
void list_init_viewports(struct gui_synclist *list)
|
||||||
{
|
{
|
||||||
(void)list;
|
(void)list;
|
||||||
|
force_list_reinit = false;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -231,7 +232,7 @@ void gui_synclist_draw(struct gui_synclist *gui_list)
|
||||||
gui_list->nb_items != last_count)
|
gui_list->nb_items != last_count)
|
||||||
{
|
{
|
||||||
list_init_viewports(gui_list);
|
list_init_viewports(gui_list);
|
||||||
force_list_reinit = false;
|
gui_synclist_select_item(gui_list, gui_list->selected_item);
|
||||||
}
|
}
|
||||||
#ifdef HAVE_BUTTONBAR
|
#ifdef HAVE_BUTTONBAR
|
||||||
last_buttonbar = screens[SCREEN_MAIN].has_buttonbar;
|
last_buttonbar = screens[SCREEN_MAIN].has_buttonbar;
|
||||||
|
|
Loading…
Reference in a new issue