diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/debug_menu.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 11399f37ca..c4291879c3 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c | |||
@@ -2188,10 +2188,13 @@ static bool dbg_pic(void) | |||
2188 | static bool dbg_skin_engine(void) | 2188 | static bool dbg_skin_engine(void) |
2189 | { | 2189 | { |
2190 | struct simplelist_info info; | 2190 | struct simplelist_info info; |
2191 | int i, ref_count, total = 0; | 2191 | int i, total = 0; |
2192 | #if defined(HAVE_BACKDROP_IMAGE) | ||
2193 | int ref_count; | ||
2192 | char *path; | 2194 | char *path; |
2193 | size_t bytes; | 2195 | size_t bytes; |
2194 | int path_prefix_len = strlen(ROCKBOX_DIR "/wps/"); | 2196 | int path_prefix_len = strlen(ROCKBOX_DIR "/wps/"); |
2197 | #endif | ||
2195 | simplelist_info_init(&info, "Skin engine usage", 0, NULL); | 2198 | simplelist_info_init(&info, "Skin engine usage", 0, NULL); |
2196 | simplelist_set_line_count(0); | 2199 | simplelist_set_line_count(0); |
2197 | info.hide_selection = true; | 2200 | info.hide_selection = true; |
@@ -2217,6 +2220,7 @@ static bool dbg_skin_engine(void) | |||
2217 | } | 2220 | } |
2218 | } | 2221 | } |
2219 | simplelist_addline("Skin total usage: %d bytes", total); | 2222 | simplelist_addline("Skin total usage: %d bytes", total); |
2223 | #if defined(HAVE_BACKDROP_IMAGE) | ||
2220 | simplelist_addline("Backdrop Images:"); | 2224 | simplelist_addline("Backdrop Images:"); |
2221 | i = 0; | 2225 | i = 0; |
2222 | while (skin_backdrop_get_debug(i++, &path, &ref_count, &bytes)) { | 2226 | while (skin_backdrop_get_debug(i++, &path, &ref_count, &bytes)) { |
@@ -2231,6 +2235,7 @@ static bool dbg_skin_engine(void) | |||
2231 | } | 2235 | } |
2232 | } | 2236 | } |
2233 | simplelist_addline("Total usage: %d bytes", total); | 2237 | simplelist_addline("Total usage: %d bytes", total); |
2238 | #endif | ||
2234 | return simplelist_show_list(&info); | 2239 | return simplelist_show_list(&info); |
2235 | } | 2240 | } |
2236 | #endif | 2241 | #endif |