summaryrefslogtreecommitdiff
path: root/apps/menus/display_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/menus/display_menu.c')
-rw-r--r--apps/menus/display_menu.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/apps/menus/display_menu.c b/apps/menus/display_menu.c
index b228095bb3..d7993fdbda 100644
--- a/apps/menus/display_menu.c
+++ b/apps/menus/display_menu.c
@@ -335,22 +335,7 @@ MENUITEM_SETTING(list_accel_wait, &global_settings.list_accel_wait, NULL);
335MENUITEM_SETTING(offset_out_of_view, &global_settings.offset_out_of_view, NULL); 335MENUITEM_SETTING(offset_out_of_view, &global_settings.offset_out_of_view, NULL);
336MENUITEM_SETTING(screen_scroll_step, &global_settings.screen_scroll_step, NULL); 336MENUITEM_SETTING(screen_scroll_step, &global_settings.screen_scroll_step, NULL);
337MENUITEM_SETTING(scroll_paginated, &global_settings.scroll_paginated, NULL); 337MENUITEM_SETTING(scroll_paginated, &global_settings.scroll_paginated, NULL);
338 338MENUITEM_SETTING(list_wraparound, &global_settings.list_wraparound, NULL);
339static int listwraparound_callback(int action,
340 const struct menu_item_ex *this_item,
341 struct gui_synclist *this_list)
342{
343 (void)this_item;
344 switch (action)
345 {
346 case ACTION_EXIT_MENUITEM:
347 gui_synclist_init_display_settings(this_list);
348 break;
349 }
350 return action;
351}
352
353MENUITEM_SETTING(list_wraparound, &global_settings.list_wraparound, listwraparound_callback);
354MENUITEM_SETTING(list_order, &global_settings.list_order, NULL); 339MENUITEM_SETTING(list_order, &global_settings.list_order, NULL);
355 340
356MAKE_MENU(scroll_settings_menu, ID2P(LANG_SCROLL_MENU), 0, Icon_NOICON, 341MAKE_MENU(scroll_settings_menu, ID2P(LANG_SCROLL_MENU), 0, Icon_NOICON,