From 01cdb6a21f0a7737bc51c4997d66bd152db694a8 Mon Sep 17 00:00:00 2001 From: Michael Sparmann Date: Mon, 25 Oct 2010 12:36:57 +0000 Subject: Fix screendump on iPod Nano 2G by increasing the usb thread stack size and reducing the stack usage of FAT and storage functions git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28356 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/screendump.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'firmware/export/screendump.h') diff --git a/firmware/export/screendump.h b/firmware/export/screendump.h index 87b32c6bee..9be1f5d3f2 100644 --- a/firmware/export/screendump.h +++ b/firmware/export/screendump.h @@ -39,6 +39,20 @@ #define LE16_CONST(x) (x)&0xff, ((x)>>8)&0xff #define LE32_CONST(x) (x)&0xff, ((x)>>8)&0xff, ((x)>>16)&0xff, ((x)>>24)&0xff +#if LCD_DEPTH <= 4 +#define BMP_BPP 4 +#define BMP_LINESIZE ((LCD_WIDTH/2 + 3) & ~3) +#elif LCD_DEPTH <= 8 +#define BMP_BPP 8 +#define BMP_LINESIZE ((LCD_WIDTH + 3) & ~3) +#elif LCD_DEPTH <= 16 +#define BMP_BPP 16 +#define BMP_LINESIZE ((LCD_WIDTH*2 + 3) & ~3) +#else +#define BMP_BPP 24 +#define BMP_LINESIZE ((LCD_WIDTH*3 + 3) & ~3) +#endif + #ifdef BOOTLOADER -- cgit v1.2.3