summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-02-15 07:37:25 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-02-15 07:37:25 +0000
commitb28585942dae76e5dc317e6d381f0994690954c6 (patch)
tree3c0516514c419017b3ef9fa5ab78813d49f27c19
parent75bf31fc0eb64e8d65553e49ee20b1de03815bbb (diff)
Fix the repeat mode menu item
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12313 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/settings_list.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/apps/settings_list.c b/apps/settings_list.c
index e847cfa23e..cf77efaf6b 100644
--- a/apps/settings_list.c
+++ b/apps/settings_list.c
@@ -303,8 +303,22 @@ const struct settings_list settings[] = {
SYSTEM_SETTING(NVRAM(4),resume_first_index,0),
SYSTEM_SETTING(NVRAM(4),resume_offset,-1),
SYSTEM_SETTING(NVRAM(4),resume_seed,-1),
- {F_T_INT, &global_settings.repeat_mode, LANG_REPEAT, INT(REPEAT_ALL), "repeat",
- "off,all,one,shuffle,ab" , UNUSED},
+ CHOICE_SETTING(0, repeat_mode, LANG_REPEAT, REPEAT_ALL, "repeat",
+ "off,all,one,shuffle"
+#if (AB_REPEAT_ENABLE == 1)
+ ",ab"
+#endif
+ , NULL,
+#if (AB_REPEAT_ENABLE == 1)
+ 5,
+#else
+ 4,
+#endif
+ ID2P(LANG_OFF), ID2P(LANG_REPEAT_ALL), ID2P(LANG_REPEAT_ONE), ID2P(LANG_SHUFFLE)
+#if (AB_REPEAT_ENABLE == 1)
+ ,ID2P(LANG_REPEAT_AB)
+#endif
+ ), /* CHOICE_SETTING( repeat_mode ) */
/* LCD */
#ifdef HAVE_LCD_CONTRAST
{F_T_INT|F_DEF_ISFUNC, &global_settings.contrast, LANG_CONTRAST,