1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Christi Scarborough 2005-11-07 13:20:21 +00:00
parent 4ab919e5d8
commit 7053f1e77c

View file

@ -58,7 +58,7 @@
#include "bmp.h" #include "bmp.h"
#include "atoi.h" #include "atoi.h"
#define MAX_IMAGES (26*2) /* a-z and A-Z */ #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[IMG_BUFSIZE]; /* image buffer */
static unsigned char* img_buf_ptr = img_buf; /* where are in image buffer? */ static unsigned char* img_buf_ptr = img_buf; /* where are in image buffer? */
@ -82,7 +82,7 @@ struct {
#ifdef HAVE_LCD_BITMAP #ifdef HAVE_LCD_BITMAP
#define MAX_LINES (LCD_HEIGHT/5+1) #define MAX_LINES (LCD_HEIGHT/5+1)
#define FORMAT_BUFFER_SIZE 1600 #define FORMAT_BUFFER_SIZE 3072
#else #else
#define MAX_LINES 2 #define MAX_LINES 2
#define FORMAT_BUFFER_SIZE 400 #define FORMAT_BUFFER_SIZE 400