diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-09-19 11:38:09 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-10-05 10:22:55 -0400 |
commit | ead172c05d57568d201709c5fac77cbb8982bbd0 (patch) | |
tree | 10ab4de5bafb8092d1b1a3cd27ca8680cf650def /apps/plugins/rb_info.c | |
parent | fe6aa21e9eb88f49005863efd2003d0982920048 (diff) | |
download | rockbox-ead172c05d57568d201709c5fac77cbb8982bbd0.tar.gz rockbox-ead172c05d57568d201709c5fac77cbb8982bbd0.zip |
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
Diffstat (limited to 'apps/plugins/rb_info.c')
-rw-r--r-- | apps/plugins/rb_info.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/apps/plugins/rb_info.c b/apps/plugins/rb_info.c index e0ec117dfb..03c6671843 100644 --- a/apps/plugins/rb_info.c +++ b/apps/plugins/rb_info.c | |||
@@ -428,7 +428,6 @@ int menu_action_cb(int *action, int selected_item, bool* exit, struct gui_syncli | |||
428 | 428 | ||
429 | if (cur->menuid == MENU_ID(M_TESTPUT)) | 429 | if (cur->menuid == MENU_ID(M_TESTPUT)) |
430 | { | 430 | { |
431 | //rb->gui_list_screen_scroll_out_of_view(true); | ||
432 | synclist_set(cur->menuid, 0, cur->items, 1); | 431 | synclist_set(cur->menuid, 0, cur->items, 1); |
433 | #if LCD_DEPTH > 1 | 432 | #if LCD_DEPTH > 1 |
434 | /* If line sep is set to automatic then outline cells */ | 433 | /* 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 | |||
473 | { | 472 | { |
474 | if (lists->data == MENU_ID(M_TESTPUT)) | 473 | if (lists->data == MENU_ID(M_TESTPUT)) |
475 | { | 474 | { |
476 | //rb->gui_list_screen_scroll_out_of_view(false); | ||
477 | //lists->callback_draw_item = NULL; | 475 | //lists->callback_draw_item = NULL; |
478 | printcell_enable(lists, false, false); | 476 | printcell_enable(lists, false, false); |
479 | } | 477 | } |