summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine/skin_backdrops.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/skin_engine/skin_backdrops.c')
-rw-r--r--apps/gui/skin_engine/skin_backdrops.c19
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 {
44static int handle_being_loaded; 44static int handle_being_loaded;
45static int current_lcd_backdrop[NB_SCREENS]; 45static int current_lcd_backdrop[NB_SCREENS];
46 46
47bool 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
47static int buflib_move_callback(int handle, void* current, void* new) 66static int buflib_move_callback(int handle, void* current, void* new)
48{ 67{
49 if (handle == handle_being_loaded) 68 if (handle == handle_being_loaded)