git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24367 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2010-01-29 08:13:40 +00:00
parent eee5423fe1
commit 349bf08ed1
2 changed files with 7 additions and 10 deletions

View file

@ -28,13 +28,6 @@
#include "bmp.h"
#define LCD_BACKDROP_BYTES (LCD_FBHEIGHT*LCD_FBWIDTH*sizeof(fb_data))
#if defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1
#define REMOTE_LCD_BACKDROP_BYTES \
(LCD_REMOTE_FBHEIGHT*LCD_REMOTE_FBWIDTH*sizeof(fb_remote_data))
#else
#define REMOTE_LCD_BACKDROP_BYTES 0
#endif
bool backdrop_load(const char *filename, char* backdrop_buffer);
void backdrop_show(char* backdrop_buffer);
@ -42,9 +35,13 @@ void backdrop_show(char* backdrop_buffer);
#define LCD_BACKDROP_BYTES 0
#endif
#if defined(HAVE_REMOTE_LCD)
#if defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1 && !defined(__PCTOOL__)
#define REMOTE_LCD_BACKDROP_BYTES \
(LCD_REMOTE_FBHEIGHT*LCD_REMOTE_FBWIDTH*sizeof(fb_remote_data))
bool remote_backdrop_load(const char *filename, char* backdrop_buffer);
void remote_backdrop_show(char* backdrop_buffer);
#else
#define REMOTE_LCD_BACKDROP_BYTES 0
#endif
#endif /* _BACKDROP_H */

View file

@ -183,9 +183,9 @@ int remote_getwidth(void) { return LCD_REMOTE_WIDTH; }
int remote_getheight(void) { return LCD_REMOTE_HEIGHT; }
#endif
static inline bool backdrop_load(enum backdrop_type bdrop, const char* filename)
static inline bool backdrop_load(const char *filename, char* backdrop_buffer)
{
(void)filename; (void)bdrop; return true;
(void)filename; (void)backdrop_buffer; return true;
}
struct screen screens[NB_SCREENS] =