diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-09-19 11:52:30 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-10-05 11:22:34 -0400 |
commit | ff378deb69951a53b866f3d3c6ee13022e520436 (patch) | |
tree | 4e608fc9004d225b1121e3545642ab56186d0c0a /apps/plugins/puzzles/rockbox.c | |
parent | ead172c05d57568d201709c5fac77cbb8982bbd0 (diff) | |
download | rockbox-ff378deb69951a53b866f3d3c6ee13022e520436.tar.gz rockbox-ff378deb69951a53b866f3d3c6ee13022e520436.zip |
gui: Remove gui_synclist_limit_scroll()
Since gui_synclist_do_button() overrides the setting at runtime
there is no reason to have a public API call to set it. Really
it should be a local variable, but it will be simpler to do that
after refactoring how list wraparound behavior is handled.
Change-Id: Id09d42197814102693752a9f64db8325118ca796
Diffstat (limited to 'apps/plugins/puzzles/rockbox.c')
-rw-r--r-- | apps/plugins/puzzles/rockbox.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/apps/plugins/puzzles/rockbox.c b/apps/plugins/puzzles/rockbox.c index 9a82cdde10..09b247e184 100644 --- a/apps/plugins/puzzles/rockbox.c +++ b/apps/plugins/puzzles/rockbox.c | |||
@@ -2450,7 +2450,6 @@ static int list_choose(const char *list_str, const char *title, int sel) | |||
2450 | rb->gui_synclist_init(&list, &config_choices_formatter, (void*)list_str, false, 1, NULL); | 2450 | rb->gui_synclist_init(&list, &config_choices_formatter, (void*)list_str, false, 1, NULL); |
2451 | rb->gui_synclist_set_icon_callback(&list, NULL); | 2451 | rb->gui_synclist_set_icon_callback(&list, NULL); |
2452 | rb->gui_synclist_set_nb_items(&list, n); | 2452 | rb->gui_synclist_set_nb_items(&list, n); |
2453 | rb->gui_synclist_limit_scroll(&list, false); | ||
2454 | 2453 | ||
2455 | rb->gui_synclist_select_item(&list, sel); | 2454 | rb->gui_synclist_select_item(&list, sel); |
2456 | 2455 | ||
@@ -2664,7 +2663,6 @@ static bool config_menu(void) | |||
2664 | rb->gui_synclist_init(&list, &config_formatter, config, false, 1, NULL); | 2663 | rb->gui_synclist_init(&list, &config_formatter, config, false, 1, NULL); |
2665 | rb->gui_synclist_set_icon_callback(&list, NULL); | 2664 | rb->gui_synclist_set_icon_callback(&list, NULL); |
2666 | rb->gui_synclist_set_nb_items(&list, n); | 2665 | rb->gui_synclist_set_nb_items(&list, n); |
2667 | rb->gui_synclist_limit_scroll(&list, false); | ||
2668 | 2666 | ||
2669 | rb->gui_synclist_select_item(&list, 0); | 2667 | rb->gui_synclist_select_item(&list, 0); |
2670 | 2668 | ||
@@ -2750,7 +2748,6 @@ static int do_preset_menu(struct preset_menu *menu, char *title, int selected) | |||
2750 | rb->gui_synclist_init(&list, &preset_formatter, menu, false, 1, NULL); | 2748 | rb->gui_synclist_init(&list, &preset_formatter, menu, false, 1, NULL); |
2751 | rb->gui_synclist_set_icon_callback(&list, NULL); | 2749 | rb->gui_synclist_set_icon_callback(&list, NULL); |
2752 | rb->gui_synclist_set_nb_items(&list, menu->n_entries); | 2750 | rb->gui_synclist_set_nb_items(&list, menu->n_entries); |
2753 | rb->gui_synclist_limit_scroll(&list, false); | ||
2754 | 2751 | ||
2755 | rb->gui_synclist_select_item(&list, selected); | 2752 | rb->gui_synclist_select_item(&list, selected); |
2756 | 2753 | ||