summaryrefslogtreecommitdiff
path: root/firmware/export/screendump.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/screendump.h')
-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 87b32c6bee..9be1f5d3f2 100644
--- a/firmware/export/screendump.h
+++ b/firmware/export/screendump.h
@@ -39,6 +39,20 @@
39#define LE16_CONST(x) (x)&0xff, ((x)>>8)&0xff 39#define LE16_CONST(x) (x)&0xff, ((x)>>8)&0xff
40#define LE32_CONST(x) (x)&0xff, ((x)>>8)&0xff, ((x)>>16)&0xff, ((x)>>24)&0xff 40#define LE32_CONST(x) (x)&0xff, ((x)>>8)&0xff, ((x)>>16)&0xff, ((x)>>24)&0xff
41 41
42#if LCD_DEPTH <= 4
43#define BMP_BPP 4
44#define BMP_LINESIZE ((LCD_WIDTH/2 + 3) & ~3)
45#elif LCD_DEPTH <= 8
46#define BMP_BPP 8
47#define BMP_LINESIZE ((LCD_WIDTH + 3) & ~3)
48#elif LCD_DEPTH <= 16
49#define BMP_BPP 16
50#define BMP_LINESIZE ((LCD_WIDTH*2 + 3) & ~3)
51#else
52#define BMP_BPP 24
53#define BMP_LINESIZE ((LCD_WIDTH*3 + 3) & ~3)
54#endif
55
42 56
43#ifdef BOOTLOADER 57#ifdef BOOTLOADER
44 58