diff options
Diffstat (limited to 'apps/gui/skin_engine/skin_backdrops.c')
-rw-r--r-- | apps/gui/skin_engine/skin_backdrops.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_backdrops.c b/apps/gui/skin_engine/skin_backdrops.c index 0d3c8b605f..4d0345c21d 100644 --- a/apps/gui/skin_engine/skin_backdrops.c +++ b/apps/gui/skin_engine/skin_backdrops.c | |||
@@ -44,6 +44,25 @@ static struct skin_backdrop { | |||
44 | static int handle_being_loaded; | 44 | static int handle_being_loaded; |
45 | static int current_lcd_backdrop[NB_SCREENS]; | 45 | static int current_lcd_backdrop[NB_SCREENS]; |
46 | 46 | ||
47 | bool skin_backdrop_get_debug(int index, char **path, int *ref_count, size_t *size) | ||
48 | { | ||
49 | |||
50 | if (index + 1 >= NB_BDROPS) | ||
51 | return false; | ||
52 | |||
53 | *path = backdrops[index].name; | ||
54 | *ref_count = backdrops[index].ref_count; | ||
55 | |||
56 | #if defined(HAVE_REMOTE_LCD) && (LCD_REMOTE_DEPTH > 1) | ||
57 | enum screen_type screen = backdrops[index].screen; | ||
58 | if (screen == SCREEN_REMOTE) | ||
59 | *size = REMOTE_LCD_BACKDROP_BYTES; | ||
60 | else | ||
61 | #endif | ||
62 | *size = LCD_BACKDROP_BYTES; | ||
63 | return true; | ||
64 | } | ||
65 | |||
47 | static int buflib_move_callback(int handle, void* current, void* new) | 66 | static int buflib_move_callback(int handle, void* current, void* new) |
48 | { | 67 | { |
49 | if (handle == handle_being_loaded) | 68 | if (handle == handle_being_loaded) |