diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2012-03-15 23:26:07 +1100 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2012-03-15 23:26:07 +1100 |
commit | 5edae54e0d11e810040380aace455af7ec7c8d08 (patch) | |
tree | 069ff654d79817ea14ad249d6995e2cad8e71374 /apps/gui/skin_engine/skin_parser.c | |
parent | 182a6c80ba4418f0244a28c932a2b36c61defd0b (diff) | |
download | rockbox-5edae54e0d11e810040380aace455af7ec7c8d08.tar.gz rockbox-5edae54e0d11e810040380aace455af7ec7c8d08.zip |
skin_engine: Reenable skin debugging in the sim (use --debugwps)
Change-Id: I2881edda45cd3ea69f5284d93bc93c47bb63b3f2
Diffstat (limited to 'apps/gui/skin_engine/skin_parser.c')
-rw-r--r-- | apps/gui/skin_engine/skin_parser.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c index d0466de812..0ebea67188 100644 --- a/apps/gui/skin_engine/skin_parser.c +++ b/apps/gui/skin_engine/skin_parser.c | |||
@@ -33,6 +33,7 @@ | |||
33 | #include "viewport.h" | 33 | #include "viewport.h" |
34 | 34 | ||
35 | #include "skin_buffer.h" | 35 | #include "skin_buffer.h" |
36 | #include "skin_debug.h" | ||
36 | #include "skin_parser.h" | 37 | #include "skin_parser.h" |
37 | #include "tag_table.h" | 38 | #include "tag_table.h" |
38 | 39 | ||
@@ -2295,6 +2296,10 @@ bool skin_data_load(enum screen_type screen, struct wps_data *wps_data, | |||
2295 | struct skin_element *tree = skin_parse(wps_buffer, skin_element_callback, wps_data); | 2296 | struct skin_element *tree = skin_parse(wps_buffer, skin_element_callback, wps_data); |
2296 | wps_data->tree = PTRTOSKINOFFSET(skin_buffer, tree); | 2297 | wps_data->tree = PTRTOSKINOFFSET(skin_buffer, tree); |
2297 | if (!SKINOFFSETTOPTR(skin_buffer, wps_data->tree)) { | 2298 | if (!SKINOFFSETTOPTR(skin_buffer, wps_data->tree)) { |
2299 | #ifdef DEBUG_SKIN_ENGINE | ||
2300 | if (isfile && debug_wps) | ||
2301 | skin_error_format_message(); | ||
2302 | #endif | ||
2298 | skin_data_reset(wps_data); | 2303 | skin_data_reset(wps_data); |
2299 | return false; | 2304 | return false; |
2300 | } | 2305 | } |
@@ -2349,9 +2354,5 @@ bool skin_data_load(enum screen_type screen, struct wps_data *wps_data, | |||
2349 | #else | 2354 | #else |
2350 | wps_data->wps_loaded = wps_data->tree >= 0; | 2355 | wps_data->wps_loaded = wps_data->tree >= 0; |
2351 | #endif | 2356 | #endif |
2352 | #ifdef DEBUG_SKIN_ENGINE | ||
2353 | // if (isfile && debug_wps) | ||
2354 | // debug_skin_usage(); | ||
2355 | #endif | ||
2356 | return true; | 2357 | return true; |
2357 | } | 2358 | } |