summaryrefslogtreecommitdiff
path: root/apps/menu.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-03-15 04:42:10 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-03-15 04:42:10 +0000
commitb35c1d8d35bec9998ac4d691624de24b51d2bc4e (patch)
treeeaa490a80283a65e7c50d5cb28bed2e563bbca0e /apps/menu.c
parent15c5d26de6a90a211de4262e055af212575aea6d (diff)
downloadrockbox-b35c1d8d35bec9998ac4d691624de24b51d2bc4e.zip
rockbox-b35c1d8d35bec9998ac4d691624de24b51d2bc4e.tar.gz
rockbox-b35c1d8d35bec9998ac4d691624de24b51d2bc4e.tar.bz2
rockbox-b35c1d8d35bec9998ac4d691624de24b51d2bc4e.tar.xz
Change anywhere where do_menu()'s return value was checked and expected
a bool to appear the same as the old API. Possibly fixes some bugs, but doubtful. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12772 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/menu.c')
-rw-r--r--apps/menu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/menu.c b/apps/menu.c
index 2c21c22..dbf295d 100644
--- a/apps/menu.c
+++ b/apps/menu.c
@@ -603,7 +603,7 @@ int do_menu(const struct menu_item_ex *start_menu, int *start_selected)
int main_menu(void)
{
- return do_menu(NULL, 0);
+ return do_menu(NULL, 0) == MENU_ATTACHED_USB;
}
/* wrappers for the old menu system to work with the new system */
@@ -706,7 +706,7 @@ int menu_show(int m)
MENU_ITEM_COUNT(menus[m].count);
menu.value = m;
menu.menu_get_name_and_icon = &menu_info;
- return do_menu(&menu, &menus[m].current_selection);
+ return do_menu(&menu, &menus[m].current_selection) == MENU_ATTACHED_USB;
}