Index: apps/recorder/bmp.c =================================================================== --- apps/recorder/bmp.c (revision 16186) +++ apps/recorder/bmp.c (working copy) @@ -162,6 +162,8 @@ int read_bmp_file(const char* filename, return ret; } +#define MAX_WIDTH 320 + /****************************************************************************** * read_bmp_fd() * @@ -182,7 +184,7 @@ int read_bmp_fd(int fd, int rowstart, rowstop, rowstep; unsigned char *bitmap = bm->data; - uint32_t bmpbuf[LCD_WIDTH]; /* Buffer for one line */ + uint32_t bmpbuf[MAX_WIDTH]; /* Buffer for one line */ uint32_t palette[256]; #if (LCD_DEPTH > 1) || defined(HAVE_REMOTE_LCD) && (LCD_REMOTE_DEPTH > 1) bool transparent = false; @@ -224,9 +226,9 @@ int read_bmp_fd(int fd, } width = readlong(&bmph.width); - if (width > LCD_WIDTH) { + if (width > MAX_WIDTH) { DEBUGF("read_bmp_fd: Bitmap too wide (%d pixels, max is %d)\n", - width, LCD_WIDTH); + width, MAX_WIDTH); return -4; }