summaryrefslogtreecommitdiff
path: root/firmware/screendump.c
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/screendump.c
parent0952848368e403f81541e222f941ec46b0e583a4 (diff)
downloadrockbox-01cdb6a21f0a7737bc51c4997d66bd152db694a8.tar.gz
rockbox-01cdb6a21f0a7737bc51c4997d66bd152db694a8.zip
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/screendump.c')
-rw-r--r--firmware/screendump.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/firmware/screendump.c b/firmware/screendump.c
index 1876df8ac0..cd9d6a5bd6 100644
--- a/firmware/screendump.c
+++ b/firmware/screendump.c
@@ -49,20 +49,6 @@
49#endif /* LCD_DEPTH > 8 */ 49#endif /* LCD_DEPTH > 8 */
50#endif /* LCD_DEPTH != 16 */ 50#endif /* LCD_DEPTH != 16 */
51 51
52#if LCD_DEPTH <= 4
53#define BMP_BPP 4
54#define BMP_LINESIZE ((LCD_WIDTH/2 + 3) & ~3)
55#elif LCD_DEPTH <= 8
56#define BMP_BPP 8
57#define BMP_LINESIZE ((LCD_WIDTH + 3) & ~3)
58#elif LCD_DEPTH <= 16
59#define BMP_BPP 16
60#define BMP_LINESIZE ((LCD_WIDTH*2 + 3) & ~3)
61#else
62#define BMP_BPP 24
63#define BMP_LINESIZE ((LCD_WIDTH*3 + 3) & ~3)
64#endif
65
66#define BMP_HEADERSIZE (54 + 4 * BMP_NUMCOLORS) 52#define BMP_HEADERSIZE (54 + 4 * BMP_NUMCOLORS)
67#define BMP_DATASIZE (BMP_LINESIZE * (LCD_HEIGHT+LCD_SPLIT_LINES)) 53#define BMP_DATASIZE (BMP_LINESIZE * (LCD_HEIGHT+LCD_SPLIT_LINES))
68#define BMP_TOTALSIZE (BMP_HEADERSIZE + BMP_DATASIZE) 54#define BMP_TOTALSIZE (BMP_HEADERSIZE + BMP_DATASIZE)
@@ -115,7 +101,7 @@ static void (*screen_dump_hook)(int fh) = NULL;
115void screen_dump(void) 101void screen_dump(void)
116{ 102{
117 int fd, y; 103 int fd, y;
118 char filename[MAX_PATH]; 104 char filename[32];
119 105
120 fb_data *src; 106 fb_data *src;
121#if LCD_DEPTH == 1 107#if LCD_DEPTH == 1