summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-01-29 08:25:24 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-01-29 08:25:24 +0000
commitae91e8b693617b53d01725aa9d6e19db748559c4 (patch)
treeba8c41bde6f8e038851ba8b4b9af3e42f3fd5361 /apps
parent349bf08ed1b31611b6d03694ca044cc296592f66 (diff)
fix the last of the red... note to self, fix backdrop.h!
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24368 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/gui/backdrop.h10
-rw-r--r--apps/gui/skin_engine/skin_buffer.c2
2 files changed, 8 insertions, 4 deletions
diff --git a/apps/gui/backdrop.h b/apps/gui/backdrop.h
index 22cdceb28e..2ab379e1cd 100644
--- a/apps/gui/backdrop.h
+++ b/apps/gui/backdrop.h
@@ -35,13 +35,17 @@ void backdrop_show(char* backdrop_buffer);
#define LCD_BACKDROP_BYTES 0
#endif
-#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))
+#if defined(HAVE_REMOTE_LCD)
bool remote_backdrop_load(const char *filename, char* backdrop_buffer);
void remote_backdrop_show(char* backdrop_buffer);
+
+#if LCD_DEPTH > 1 && LCD_REMOTE_DEPTH > 1 && !defined(__PCTOOL__)
+#define REMOTE_LCD_BACKDROP_BYTES \
+ (LCD_REMOTE_FBHEIGHT*LCD_REMOTE_FBWIDTH*sizeof(fb_remote_data))
#else
#define REMOTE_LCD_BACKDROP_BYTES 0
#endif
+#endif
+
#endif /* _BACKDROP_H */
diff --git a/apps/gui/skin_engine/skin_buffer.c b/apps/gui/skin_engine/skin_buffer.c
index a15ad10bee..3418b074a4 100644
--- a/apps/gui/skin_engine/skin_buffer.c
+++ b/apps/gui/skin_engine/skin_buffer.c
@@ -55,7 +55,7 @@
#ifdef HAVE_LCD_BITMAP
-#define MAIN_BUFFER ((2*LCD_HEIGHT*LCD_WIDTH*LCD_DEPTH/8) \
+#define MAIN_BUFFER ((1*LCD_HEIGHT*LCD_WIDTH*LCD_DEPTH/8) \
+ (SKINNABLE_SCREENS_COUNT * LCD_BACKDROP_BYTES))
#if (NB_SCREENS > 1)