summaryrefslogtreecommitdiff
path: root/apps/settings_menu.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2006-07-22 13:47:11 +0000
committerDave Chapman <dave@dchapman.com>2006-07-22 13:47:11 +0000
commite5ee9a25c56a9e4134a4b2123c417e434a364c01 (patch)
tree554c88dd7ca8349484bd96a21c750f75cf68462e /apps/settings_menu.c
parent3ba16cbed03809faf33f61bd4ce150618133a226 (diff)
downloadrockbox-e5ee9a25c56a9e4134a4b2123c417e434a364c01.tar.gz
rockbox-e5ee9a25c56a9e4134a4b2123c417e434a364c01.zip
Patch by Alexander Spyridakis - Add forgotten remote_bidir_scroll setting. Don't forget to save your settings before upgrading.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10283 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings_menu.c')
-rw-r--r--apps/settings_menu.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/apps/settings_menu.c b/apps/settings_menu.c
index 8417e77341..3e02727f9e 100644
--- a/apps/settings_menu.c
+++ b/apps/settings_menu.c
@@ -880,6 +880,14 @@ static bool remote_scroll_delay(void)
880 global_settings.remote_scroll_delay = dummy / (HZ/10); 880 global_settings.remote_scroll_delay = dummy / (HZ/10);
881 return rc; 881 return rc;
882} 882}
883
884static bool remote_bidir_limit(void)
885{
886 return set_int(str(LANG_BIDIR_SCROLL), "%", UNIT_PERCENT,
887 &global_settings.remote_bidir_limit,
888 &lcd_remote_bidir_scroll, 25, 0, 200, NULL );
889}
890
883#endif 891#endif
884 892
885#ifdef HAVE_LCD_BITMAP 893#ifdef HAVE_LCD_BITMAP
@@ -1708,6 +1716,7 @@ static bool remote_scroll_sets(void)
1708 { ID2P(LANG_SCROLL_SPEED), remote_scroll_speed }, 1716 { ID2P(LANG_SCROLL_SPEED), remote_scroll_speed },
1709 { ID2P(LANG_SCROLL_DELAY), remote_scroll_delay }, 1717 { ID2P(LANG_SCROLL_DELAY), remote_scroll_delay },
1710 { ID2P(LANG_SCROLL_STEP), remote_scroll_step }, 1718 { ID2P(LANG_SCROLL_STEP), remote_scroll_step },
1719 { ID2P(LANG_BIDIR_SCROLL), remote_bidir_limit },
1711 }; 1720 };
1712 1721
1713 m=menu_init( items, sizeof(items) / sizeof(*items), NULL, 1722 m=menu_init( items, sizeof(items) / sizeof(*items), NULL,
@@ -1729,10 +1738,10 @@ static bool scroll_settings_menu(void)
1729#ifdef HAVE_LCD_BITMAP 1738#ifdef HAVE_LCD_BITMAP
1730 { ID2P(LANG_SCROLL_STEP), scroll_step }, 1739 { ID2P(LANG_SCROLL_STEP), scroll_step },
1731#endif 1740#endif
1741 { ID2P(LANG_BIDIR_SCROLL), bidir_limit },
1732#ifdef HAVE_REMOTE_LCD 1742#ifdef HAVE_REMOTE_LCD
1733 { ID2P(LANG_REMOTE_SCROLL_SETS), remote_scroll_sets }, 1743 { ID2P(LANG_REMOTE_SCROLL_SETS), remote_scroll_sets },
1734#endif 1744#endif
1735 { ID2P(LANG_BIDIR_SCROLL), bidir_limit },
1736#ifdef HAVE_LCD_CHARCELLS 1745#ifdef HAVE_LCD_CHARCELLS
1737 { ID2P(LANG_JUMP_SCROLL), jump_scroll }, 1746 { ID2P(LANG_JUMP_SCROLL), jump_scroll },
1738 { ID2P(LANG_JUMP_SCROLL_DELAY), jump_scroll_delay }, 1747 { ID2P(LANG_JUMP_SCROLL_DELAY), jump_scroll_delay },