forked from len0rd/rockbox
gui: Remove redundant copies of list scrolling settings
gui_list_screen_scroll_step() and gui_list_screen_scroll_out_of_view() just copy the global setting into a local static variable. Since they don't do anything special when the setting changes it's simpler to use the global setting directly. Change-Id: Ib6a7bf4e09b6dabbc1597cf28ddbafc0bc857526
This commit is contained in:
parent
fe6aa21e9e
commit
ead172c05d
6 changed files with 6 additions and 45 deletions
|
@ -428,7 +428,6 @@ int menu_action_cb(int *action, int selected_item, bool* exit, struct gui_syncli
|
|||
|
||||
if (cur->menuid == MENU_ID(M_TESTPUT))
|
||||
{
|
||||
//rb->gui_list_screen_scroll_out_of_view(true);
|
||||
synclist_set(cur->menuid, 0, cur->items, 1);
|
||||
#if LCD_DEPTH > 1
|
||||
/* If line sep is set to automatic then outline cells */
|
||||
|
@ -473,7 +472,6 @@ int menu_action_cb(int *action, int selected_item, bool* exit, struct gui_syncli
|
|||
{
|
||||
if (lists->data == MENU_ID(M_TESTPUT))
|
||||
{
|
||||
//rb->gui_list_screen_scroll_out_of_view(false);
|
||||
//lists->callback_draw_item = NULL;
|
||||
printcell_enable(lists, false, false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue