From 616971c71eaee14cc9e16fe105d34c202babbf7c Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Sun, 21 Oct 2007 06:42:52 +0000 Subject: remove the seelection_size param from the info init call to hopefully decrease the bin size a bit git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15237 a1c6a512-1295-4272-9138-f99709370657 --- apps/debug_menu.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'apps/debug_menu.c') diff --git a/apps/debug_menu.c b/apps/debug_menu.c index b654bb6..995333e 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -180,7 +180,7 @@ static int dbg_threads_action_callback(int action, struct gui_synclist *lists) static bool dbg_os(void) { struct simplelist_info info; - simplelist_info_init(&info, IF_COP("Core and ") "Stack usage:", 1, + simplelist_info_init(&info, IF_COP("Core and ") "Stack usage:", #if NUM_CORES == 1 MAXTHREADS, #else @@ -731,7 +731,8 @@ static char* dbg_partitions_getname(int selected_item, void * data, char *buffer bool dbg_partitions(void) { struct simplelist_info info; - simplelist_info_init(&info, "Partition Info", 2, 4, NULL); + simplelist_info_init(&info, "Partition Info", 4, NULL); + info.selection_size = 2; info.hide_selection = true; info.get_name = dbg_partitions_getname; return simplelist_show_list(&info); @@ -1783,7 +1784,7 @@ static int disk_callback(int btn, struct gui_synclist *lists) static bool dbg_disk_info(void) { struct simplelist_info info; - simplelist_info_init(&info, "Disk Info", 1,1, NULL); + simplelist_info_init(&info, "Disk Info", 1, NULL); #if defined(HAVE_MMC) || defined(HAVE_HOTSWAP) char title[16]; int card = 0; @@ -1821,7 +1822,7 @@ static int dircache_callback(int btn, struct gui_synclist *lists) static bool dbg_dircache_info(void) { struct simplelist_info info; - simplelist_info_init(&info, "Dircache Info", 1, 7, NULL); + simplelist_info_init(&info, "Dircache Info", 7, NULL); info.action_callback = dircache_callback; info.hide_selection = true; return simplelist_show_list(&info); @@ -1854,7 +1855,7 @@ static int database_callback(int btn, struct gui_synclist *lists) static bool dbg_tagcache_info(void) { struct simplelist_info info; - simplelist_info_init(&info, "Database Info", 1, 7, NULL); + simplelist_info_init(&info, "Database Info", 7, NULL); info.action_callback = database_callback; info.hide_selection = true; return simplelist_show_list(&info); @@ -1996,7 +1997,7 @@ static int radio_callback(int btn, struct gui_synclist *lists) static bool dbg_fm_radio(void) { struct simplelist_info info; - simplelist_info_init(&info, "FM Radio", 1, 1, NULL); + simplelist_info_init(&info, "FM Radio", 1, NULL); simplelist_set_line_count(0); simplelist_addline(SIMPLELIST_ADD_LINE, "HW detected: %s", radio_hardware_present() ? "yes" : "no"); -- cgit v1.1