Try to set the selection correclty the first time the Rockbox menu is

entered. Fixes FS#6715


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12578 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2007-03-04 01:22:25 +00:00
parent 55843fdedd
commit a61a7fa7ae

View file

@ -311,6 +311,19 @@ void root_menu(void)
ret_val = (int)global_status.last_screen;
else ret_val = global_settings.start_in_screen - 2;
/* try to select the start item if its not the menu */
if (ret_val != GO_TO_ROOT)
{
unsigned int i;
for(i=0; i< sizeof(root_menu__)/sizeof(*root_menu__) - 1; i++)
{
if (root_menu__[i]->value == ret_val)
{
selected = i;
break;
}
}
}
while (true)
{
switch (ret_val)