summaryrefslogtreecommitdiff
path: root/apps/debug_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r--apps/debug_menu.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index 32ab46cbda..404d82c63e 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -88,6 +88,7 @@
88#endif 88#endif
89#include "hwcompat.h" 89#include "hwcompat.h"
90 90
91static char* dbg_menu_getname(int item, void * data, char *buffer);
91static bool dbg_list(char *title, int count, int selection_size, 92static bool dbg_list(char *title, int count, int selection_size,
92 int (*action_callback)(int btn, struct gui_synclist *lists), 93 int (*action_callback)(int btn, struct gui_synclist *lists),
93 char* (*dbg_getname)(int item, void * data, char *buffer)) 94 char* (*dbg_getname)(int item, void * data, char *buffer))
@@ -99,6 +100,8 @@ static bool dbg_list(char *title, int count, int selection_size,
99 gui_synclist_set_title(&lists, title, NOICON); 100 gui_synclist_set_title(&lists, title, NOICON);
100 gui_synclist_set_icon_callback(&lists, NULL); 101 gui_synclist_set_icon_callback(&lists, NULL);
101 gui_synclist_set_nb_items(&lists, count*selection_size); 102 gui_synclist_set_nb_items(&lists, count*selection_size);
103 if (dbg_getname != dbg_menu_getname)
104 gui_synclist_hide_selection_marker(&lists, true);
102 action_signalscreenchange(); 105 action_signalscreenchange();
103 gui_synclist_draw(&lists); 106 gui_synclist_draw(&lists);
104 while(1) 107 while(1)
@@ -659,7 +662,7 @@ static char* dbg_partitions_getname(int selected_item, void * data, char *buffer
659 struct partinfo* p = disk_partinfo(partition); 662 struct partinfo* p = disk_partinfo(partition);
660 if (selected_item%2) 663 if (selected_item%2)
661 { 664 {
662 snprintf(buffer, MAX_PATH, "T:%x %ld MB", p->type, p->size / 2048); 665 snprintf(buffer, MAX_PATH, " T:%x %ld MB", p->type, p->size / 2048);
663 } 666 }
664 else 667 else
665 { 668 {