From 4c514b9d942a8bc1e1c0d9599886aff138446b13 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Fri, 29 Jan 2010 08:39:08 +0000 Subject: really the last of the red this time git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24370 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/backdrop.c | 8 +++++++- 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) 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 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) /* 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 -- cgit v1.2.3