diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/gui/backdrop.c | 8 | ||||
-rw-r--r-- | apps/gui/statusbar-skinned.c | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/apps/gui/backdrop.c b/apps/gui/backdrop.c index e460b87108..fb35fe1e51 100644 --- a/apps/gui/backdrop.c +++ b/apps/gui/backdrop.c | |||
@@ -62,8 +62,14 @@ bool remote_backdrop_load(const char *filename, char* backdrop_buffer) | |||
62 | ret = read_bmp_file(filename, &bm, REMOTE_LCD_BACKDROP_BYTES, | 62 | ret = read_bmp_file(filename, &bm, REMOTE_LCD_BACKDROP_BYTES, |
63 | FORMAT_NATIVE | FORMAT_DITHER | FORMAT_REMOTE, NULL); | 63 | FORMAT_NATIVE | FORMAT_DITHER | FORMAT_REMOTE, NULL); |
64 | return ((ret > 0) | 64 | return ((ret > 0) |
65 | && (bm.width == REMOTE_LCD_WIDTH) && (bm.height == REMOTE_LCD_HEIGHT)); | 65 | && (bm.width == LCD_REMOTE_WIDTH) && (bm.height == LCD_REMOTE_HEIGHT)); |
66 | } | 66 | } |
67 | |||
68 | void remote_backdrop_show(char *backdrop_buffer) | ||
69 | { | ||
70 | lcd_remote_set_backdrop((fb_remote_data*)backdrop_buffer); | ||
71 | } | ||
72 | |||
67 | #else /* needs stubs */ | 73 | #else /* needs stubs */ |
68 | 74 | ||
69 | bool remote_backdrop_load(const char *filename, char* backdrop_buffer) | 75 | bool remote_backdrop_load(const char *filename, char* backdrop_buffer) |
diff --git a/apps/gui/statusbar-skinned.c b/apps/gui/statusbar-skinned.c index 2631b4c4f4..6f556c3009 100644 --- a/apps/gui/statusbar-skinned.c +++ b/apps/gui/statusbar-skinned.c | |||
@@ -93,7 +93,7 @@ bool sb_set_backdrop(enum screen_type screen, char* filename) | |||
93 | /* need to make room on the buffer */ | 93 | /* need to make room on the buffer */ |
94 | size_t buf_size; | 94 | size_t buf_size; |
95 | #if defined(HAVE_REMOTE_LCD) && (LCD_REMOTE_DEPTH > 1) | 95 | #if defined(HAVE_REMOTE_LCD) && (LCD_REMOTE_DEPTH > 1) |
96 | if (curr_screen == SCREEN_REMOTE) | 96 | if (screen == SCREEN_REMOTE) |
97 | buf_size = REMOTE_LCD_BACKDROP_BYTES; | 97 | buf_size = REMOTE_LCD_BACKDROP_BYTES; |
98 | else | 98 | else |
99 | #endif | 99 | #endif |