diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2009-09-11 18:02:52 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2009-09-11 18:02:52 +0000 |
commit | 65fff8bdd86bcc7c6ff29a5fc727577dc6da367c (patch) | |
tree | 2f0b0a14f60575a7a81629578650a3b5af09f34f /apps | |
parent | c8020748bbac366d3f9bfb4552c1c6641827c7eb (diff) |
Increase skin buffer on charcell displays so it's actually big enough to load a wps file
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22681 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/gui/skin_engine/skin_buffer.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_buffer.c b/apps/gui/skin_engine/skin_buffer.c index 1d18fb9431..1a81f55ea8 100644 --- a/apps/gui/skin_engine/skin_buffer.c +++ b/apps/gui/skin_engine/skin_buffer.c @@ -53,6 +53,7 @@ */ +#ifdef HAVE_LCD_BITMAP #define MAIN_BUFFER ((LCD_HEIGHT*LCD_WIDTH*LCD_DEPTH/8) \ + (2*LCD_HEIGHT*LCD_WIDTH/8)) @@ -66,7 +67,12 @@ #define SKIN_BUFFER_SIZE (MAIN_BUFFER + REMOTE_BUFFER) + \ (WPS_MAX_TOKENS * sizeof(struct wps_token)) +#endif +#ifdef HAVE_LCD_CHARCELLS +#define SKIN_BUFFER_SIZE (LCD_HEIGHT * LCD_WIDTH) * 64 + \ + (WPS_MAX_TOKENS * sizeof(struct wps_token)) +#endif static unsigned char buffer[SKIN_BUFFER_SIZE]; static unsigned char *buffer_front = NULL; /* start of the free space, |