forked from len0rd/rockbox
Convert the radio menus to the new system.
Change the way the presets are done (in code). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12500 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
93712c97ee
commit
2816dc9c13
6 changed files with 192 additions and 263 deletions
|
|
@ -314,6 +314,9 @@ static char * get_menu_item_name(int selected_item,void * data, char *buffer)
|
|||
/* only MT_MENU or MT_RETURN_ID is allowed in here */
|
||||
if (type == MT_RETURN_ID)
|
||||
{
|
||||
if (menu->flags&MENU_DYNAMIC_DESC)
|
||||
return menu->menu_get_name_and_icon->list_get_name(selected_item,
|
||||
menu->menu_get_name_and_icon->list_get_name_data, buffer);
|
||||
return (char*)menu->strings[selected_item];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue