1
0
Fork 0
forked from len0rd/rockbox

and fix the last compile errors

Change-Id: I6e1608276afdaf04705b333fc3e96c8b90ff5233
This commit is contained in:
Jonathan Gordon 2013-02-12 21:14:56 +11:00
parent 5aa4bf6faa
commit cb9258ef0f

View file

@ -2188,10 +2188,13 @@ static bool dbg_pic(void)
static bool dbg_skin_engine(void) static bool dbg_skin_engine(void)
{ {
struct simplelist_info info; struct simplelist_info info;
int i, ref_count, total = 0; int i, total = 0;
#if defined(HAVE_BACKDROP_IMAGE)
int ref_count;
char *path; char *path;
size_t bytes; size_t bytes;
int path_prefix_len = strlen(ROCKBOX_DIR "/wps/"); int path_prefix_len = strlen(ROCKBOX_DIR "/wps/");
#endif
simplelist_info_init(&info, "Skin engine usage", 0, NULL); simplelist_info_init(&info, "Skin engine usage", 0, NULL);
simplelist_set_line_count(0); simplelist_set_line_count(0);
info.hide_selection = true; info.hide_selection = true;
@ -2217,6 +2220,7 @@ static bool dbg_skin_engine(void)
} }
} }
simplelist_addline("Skin total usage: %d bytes", total); simplelist_addline("Skin total usage: %d bytes", total);
#if defined(HAVE_BACKDROP_IMAGE)
simplelist_addline("Backdrop Images:"); simplelist_addline("Backdrop Images:");
i = 0; i = 0;
while (skin_backdrop_get_debug(i++, &path, &ref_count, &bytes)) { while (skin_backdrop_get_debug(i++, &path, &ref_count, &bytes)) {
@ -2231,6 +2235,7 @@ static bool dbg_skin_engine(void)
} }
} }
simplelist_addline("Total usage: %d bytes", total); simplelist_addline("Total usage: %d bytes", total);
#endif
return simplelist_show_list(&info); return simplelist_show_list(&info);
} }
#endif #endif