summaryrefslogtreecommitdiffstats
path: root/apps/gui/skin_engine/skin_engine.h
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2011-09-08 12:38:21 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2011-09-08 12:38:21 +0000
commita483c9c6f1e6674eb2b5dcf01e21a7ab4c77e24f (patch)
tree302bc4b8550d2d81b489fb8f0f93bd5356dc7ead /apps/gui/skin_engine/skin_engine.h
parent4f4e91e341058c1ea1ddd3d36f67ae276fe545ad (diff)
downloadrockbox-a483c9c6f1e6674eb2b5dcf01e21a7ab4c77e24f.tar.gz
rockbox-a483c9c6f1e6674eb2b5dcf01e21a7ab4c77e24f.tar.bz2
rockbox-a483c9c6f1e6674eb2b5dcf01e21a7ab4c77e24f.zip
Use buflib for skin images. Allows much more images to be loaded
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30478 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine/skin_engine.h')
-rw-r--r--apps/gui/skin_engine/skin_engine.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/apps/gui/skin_engine/skin_engine.h b/apps/gui/skin_engine/skin_engine.h
index 52ec19d5f9..c8104f9304 100644
--- a/apps/gui/skin_engine/skin_engine.h
+++ b/apps/gui/skin_engine/skin_engine.h
@@ -43,16 +43,8 @@ enum skinnable_screens {
#ifdef HAVE_LCD_BITMAP
-#define MAIN_BUFFER (2*LCD_HEIGHT*LCD_WIDTH*LCD_DEPTH/8)
-#if (NB_SCREENS > 1)
-#define REMOTE_BUFFER (2*(LCD_REMOTE_HEIGHT*LCD_REMOTE_WIDTH*LCD_REMOTE_DEPTH/8))
-#else
-#define REMOTE_BUFFER 0
-#endif
-
-
-#define SKIN_BUFFER_SIZE (MAIN_BUFFER + REMOTE_BUFFER + SKIN_FONT_SIZE) + \
+#define SKIN_BUFFER_SIZE (2048 + SKIN_FONT_SIZE) + \
(WPS_MAX_TOKENS * \
(sizeof(struct wps_token) + (sizeof(struct skin_element))))
#endif