really the last of the red this time

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24370 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2010-01-29 08:39:08 +00:00
parent 03ab592c9c
commit 4c514b9d94
2 changed files with 8 additions and 2 deletions

View file

@ -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)

View file

@ -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