diff options
Diffstat (limited to 'firmware/screendump.c')
-rw-r--r-- | firmware/screendump.c | 16 |
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; | |||
115 | void screen_dump(void) | 101 | void 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 |