diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2007-07-23 05:40:45 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2007-07-23 05:40:45 +0000 |
commit | fe2b376060cfedb2d53b6025fcdef9cdd8604733 (patch) | |
tree | c13a789bac4c522757f0ccf245b524a1d76f8566 /apps/menu.c | |
parent | 8584a6bb5d8520b603b89d3fec8ffd13e399143c (diff) |
Fix the text for settings which have a different title than what is shown in the menu (i.e scroll options)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13962 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/menu.c')
-rw-r--r-- | apps/menu.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/menu.c b/apps/menu.c index a9bc0d4d69..60f2424cae 100644 --- a/apps/menu.c +++ b/apps/menu.c @@ -253,15 +253,19 @@ static void talk_menu_item(const struct menu_item_ex *menu, } } #define MAX_OPTIONS 32 -/* returns true if the menu needs to be redrwan */ bool do_setting_from_menu(const struct menu_item_ex *temp) { int setting_id; const struct settings_list *setting = find_setting( temp->variable, &setting_id); + char *title; + if ((temp->flags&MENU_TYPE_MASK) == MT_SETTING_W_TEXT) + title = temp->callback_and_desc->desc; + else + title = ID2P(setting->lang_id); option_screen((struct settings_list *)setting, - setting->flags&F_TEMPVAR); + setting->flags&F_TEMPVAR, title); return false; } |