summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-04-14 00:03:09 +0000
committerJens Arnold <amiconn@rockbox.org>2007-04-14 00:03:09 +0000
commit17c93f9be0e2a322d8f42410f98629fb5e161742 (patch)
tree27ffcc4f2175b7683c95e3ae6c0daa81f8acef60
parent427fff4320df478cc0d7a6fa5d68e08d70a844b8 (diff)
downloadrockbox-17c93f9be0e2a322d8f42410f98629fb5e161742.tar.gz
rockbox-17c93f9be0e2a322d8f42410f98629fb5e161742.zip
Fix an off-by-one bug (hitting when menu titles are enabled) in the oldmenu wrapper.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13149 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/menu.c b/apps/menu.c
index ecbf3ddb4c..71a066f428 100644
--- a/apps/menu.c
+++ b/apps/menu.c
@@ -719,12 +719,12 @@ static void init_oldmenu(const struct menu_item_ex *menu,
(void*)(intptr_t)menu->value, false, 1);
gui_synclist_set_nb_items(lists, MENU_GET_COUNT(menu->flags));
gui_synclist_limit_scroll(lists, true);
- gui_synclist_select_item(lists, selected);
#ifdef HAVE_LCD_BITMAP
gui_synclist_set_title(lists, menus[menu->value].title,
bitmap_icons_6x8[Icon_Submenu_Entered]);
gui_synclist_set_icon_callback(lists, oldmenu_get_icon);
#endif
+ gui_synclist_select_item(lists, selected);
}
static void menu_talk_selected(int m)