summaryrefslogtreecommitdiff
path: root/apps/settings_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings_menu.c')
-rw-r--r--apps/settings_menu.c22
1 files changed, 18 insertions, 4 deletions
diff --git a/apps/settings_menu.c b/apps/settings_menu.c
index 52b8d86aac..db6499a313 100644
--- a/apps/settings_menu.c
+++ b/apps/settings_menu.c
@@ -459,10 +459,23 @@ static bool bidir_limit(void)
459#ifdef HAVE_LCD_CHARCELLS 459#ifdef HAVE_LCD_CHARCELLS
460static bool jump_scroll(void) 460static bool jump_scroll(void)
461{ 461{
462 char* names[] = { str(LANG_OFF), str(LANG_ONE_TIME), str(LANG_ALWAYS)}; 462 char* names[] = { str(LANG_OFF), str(LANG_ONE_TIME), "2",
463 463 "3", "4", str(LANG_ALWAYS)};
464 return set_option(str(LANG_JUMP_SCROLL), &global_settings.jump_scroll, 464 bool ret;
465 names, 3, lcd_jump_scroll); 465 ret=set_option(str(LANG_JUMP_SCROLL), &global_settings.jump_scroll,
466 names, 6, lcd_jump_scroll);
467 if (!ret && global_settings.jump_scroll>=JUMP_SCROLL_ALWAYS) {
468 global_settings.jump_scroll=254; /* Nice future "safe" value */
469 }
470 return ret;
471}
472static bool jump_scroll_delay(void)
473{
474 int dummy = global_settings.jump_scroll_delay * (HZ/10);
475 int rc = set_int(str(LANG_JUMP_SCROLL_DELAY), "ms", &dummy,
476 &lcd_jump_scroll_delay, 100, 0, 2500 );
477 global_settings.jump_scroll_delay = dummy / (HZ/10);
478 return rc;
466} 479}
467#endif 480#endif
468 481
@@ -761,6 +774,7 @@ static bool scroll_settings_menu(void)
761 { str(LANG_BIDIR_SCROLL), bidir_limit }, 774 { str(LANG_BIDIR_SCROLL), bidir_limit },
762#ifdef HAVE_LCD_CHARCELLS 775#ifdef HAVE_LCD_CHARCELLS
763 { str(LANG_JUMP_SCROLL), jump_scroll }, 776 { str(LANG_JUMP_SCROLL), jump_scroll },
777 { str(LANG_JUMP_SCROLL_DELAY), jump_scroll_delay },
764#endif 778#endif
765 }; 779 };
766 780