mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
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
|
|
@ -1227,13 +1227,11 @@ const struct settings_list settings[] = {
|
|||
lcd_remote_bidir_scroll),
|
||||
#endif
|
||||
OFFON_SETTING(0, offset_out_of_view, LANG_SCREEN_SCROLL_VIEW,
|
||||
false, "Screen Scrolls Out Of View",
|
||||
gui_list_screen_scroll_out_of_view),
|
||||
false, "Screen Scrolls Out Of View", NULL),
|
||||
INT_SETTING(F_PADTITLE, scroll_step, LANG_SCROLL_STEP, 6, "scroll step",
|
||||
UNIT_PIXEL, 1, LCD_WIDTH, 1, NULL, NULL, lcd_scroll_step),
|
||||
INT_SETTING(F_PADTITLE, screen_scroll_step, LANG_SCREEN_SCROLL_STEP, 16,
|
||||
"screen scroll step", UNIT_PIXEL, 1, LCD_WIDTH, 1, NULL, NULL,
|
||||
gui_list_screen_scroll_step),
|
||||
"screen scroll step", UNIT_PIXEL, 1, LCD_WIDTH, 1, NULL, NULL, NULL),
|
||||
OFFON_SETTING(0,scroll_paginated,LANG_SCROLL_PAGINATED,
|
||||
false,"scroll paginated",NULL),
|
||||
OFFON_SETTING(0,list_wraparound,LANG_LIST_WRAPAROUND,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue