summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristi Scarborough <christi@coraline.org>2005-11-07 13:20:21 +0000
committerChristi Scarborough <christi@coraline.org>2005-11-07 13:20:21 +0000
commit7053f1e77c77cf08f75c089381f0f875e8070b2c (patch)
treec142341d61c53f38cb674f7b47ca7cf3297b91cb
parent4ab919e5d8b816cfd6847e4e6828bedf0ecdb21b (diff)
downloadrockbox-7053f1e77c77cf08f75c089381f0f875e8070b2c.zip
rockbox-7053f1e77c77cf08f75c089381f0f875e8070b2c.tar.gz
rockbox-7053f1e77c77cf08f75c089381f0f875e8070b2c.tar.bz2
rockbox-7053f1e77c77cf08f75c089381f0f875e8070b2c.tar.xz
The WPS buffer wasn't big enough for my 2.2k WPS file. Increased buffer size to 3k.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7775 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/wps-display.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/wps-display.c b/apps/wps-display.c
index 3c3cc98..47d5b57 100644
--- a/apps/wps-display.c
+++ b/apps/wps-display.c
@@ -58,7 +58,7 @@
#include "bmp.h"
#include "atoi.h"
#define MAX_IMAGES (26*2) /* a-z and A-Z */
-#define IMG_BUFSIZE (LCD_HEIGHT * LCD_WIDTH * MAX_IMAGES/25) / 8
+#define IMG_BUFSIZE (LCD_HEIGHT * LCD_WIDTH * MAX_IMAGES / 25 ) / 8
static unsigned char img_buf[IMG_BUFSIZE]; /* image buffer */
static unsigned char* img_buf_ptr = img_buf; /* where are in image buffer? */
@@ -82,7 +82,7 @@ struct {
#ifdef HAVE_LCD_BITMAP
#define MAX_LINES (LCD_HEIGHT/5+1)
-#define FORMAT_BUFFER_SIZE 1600
+#define FORMAT_BUFFER_SIZE 3072
#else
#define MAX_LINES 2
#define FORMAT_BUFFER_SIZE 400