summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-05-09 06:52:13 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-05-09 06:52:13 +0000
commit52a8a540b14313aa83bee0fb9eca4502f86eb9f7 (patch)
treecc89fd157a4b6083b61eee46b324a6f5b3672e22 /apps/gui/skin_engine
parentbbb22fa9fc6980a2a1073ee1f5b3c541e40b32fb (diff)
revert those last few...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25910 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine')
-rw-r--r--apps/gui/skin_engine/skin_buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gui/skin_engine/skin_buffer.c b/apps/gui/skin_engine/skin_buffer.c
index 42d47cc20f..a15ad10bee 100644
--- a/apps/gui/skin_engine/skin_buffer.c
+++ b/apps/gui/skin_engine/skin_buffer.c
@@ -55,11 +55,11 @@
#ifdef HAVE_LCD_BITMAP
-#define MAIN_BUFFER ((2*(LCD_FBHEIGHT*LCD_FBWIDTH*sizeof(fb_data))) \
+#define MAIN_BUFFER ((2*LCD_HEIGHT*LCD_WIDTH*LCD_DEPTH/8) \
+ (SKINNABLE_SCREENS_COUNT * LCD_BACKDROP_BYTES))
#if (NB_SCREENS > 1)
-#define REMOTE_BUFFER ((2*(LCD_REMOTE_FBHEIGHT*LCD_REMOTE_FBWIDTH*sizeof(fb_remote_data))) \
+#define REMOTE_BUFFER (2*(LCD_REMOTE_HEIGHT*LCD_REMOTE_WIDTH*LCD_REMOTE_DEPTH/8) \
+ (SKINNABLE_SCREENS_COUNT * REMOTE_LCD_BACKDROP_BYTES))
#else
#define REMOTE_BUFFER 0