summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorMichael Sparmann <theseven@rockbox.org>2010-10-25 12:36:57 +0000
committerMichael Sparmann <theseven@rockbox.org>2010-10-25 12:36:57 +0000
commit01cdb6a21f0a7737bc51c4997d66bd152db694a8 (patch)
treecc98be9a47e120f62c3b946d2589f00831b7d178 /firmware/export
parent0952848368e403f81541e222f941ec46b0e583a4 (diff)
downloadrockbox-01cdb6a21f0a7737bc51c4997d66bd152db694a8.zip
rockbox-01cdb6a21f0a7737bc51c4997d66bd152db694a8.tar.gz
rockbox-01cdb6a21f0a7737bc51c4997d66bd152db694a8.tar.bz2
rockbox-01cdb6a21f0a7737bc51c4997d66bd152db694a8.tar.xz
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
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/screendump.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/firmware/export/screendump.h b/firmware/export/screendump.h
index 87b32c6..9be1f5d 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