summaryrefslogtreecommitdiff
path: root/apps/gui
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/backdrop.c8
-rw-r--r--apps/gui/statusbar-skinned.c2
2 files changed, 8 insertions, 2 deletions
diff --git a/apps/gui/backdrop.c b/apps/gui/backdrop.c
index e460b87..fb35fe1 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)
ret = read_bmp_file(filename, &bm, REMOTE_LCD_BACKDROP_BYTES,
FORMAT_NATIVE | FORMAT_DITHER | FORMAT_REMOTE, NULL);
return ((ret > 0)
- && (bm.width == REMOTE_LCD_WIDTH) && (bm.height == REMOTE_LCD_HEIGHT));
+ && (bm.width == LCD_REMOTE_WIDTH) && (bm.height == LCD_REMOTE_HEIGHT));
}
+
+void remote_backdrop_show(char *backdrop_buffer)
+{
+ lcd_remote_set_backdrop((fb_remote_data*)backdrop_buffer);
+}
+
#else /* needs stubs */
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 2631b4c..6f556c3 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)
/* need to make room on the buffer */
size_t buf_size;
#if defined(HAVE_REMOTE_LCD) && (LCD_REMOTE_DEPTH > 1)
- if (curr_screen == SCREEN_REMOTE)
+ if (screen == SCREEN_REMOTE)
buf_size = REMOTE_LCD_BACKDROP_BYTES;
else
#endif