summaryrefslogtreecommitdiff
path: root/firmware/export/screendump.h
diff options
context:
space:
mode:
authorMichael Sparmann <theseven@rockbox.org>2010-10-25 12:52:02 +0000
committerMichael Sparmann <theseven@rockbox.org>2010-10-25 12:52:02 +0000
commit77129ad3ec7e1999a5177c8a49af64be78882566 (patch)
tree004c963db9a93fa9a5f962a68eddc083a1fd1662 /firmware/export/screendump.h
parent7c6bb3f4ace0e15e8ca964dc7ec9bf28632c85ce (diff)
downloadrockbox-77129ad3ec7e1999a5177c8a49af64be78882566.tar.gz
rockbox-77129ad3ec7e1999a5177c8a49af64be78882566.zip
Really fix yellow: Rename BMP_LINESIZE and BMP_BPP to get rid of the macro name collision
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28359 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/screendump.h')
-rw-r--r--firmware/export/screendump.h26
1 files changed, 8 insertions, 18 deletions
diff --git a/firmware/export/screendump.h b/firmware/export/screendump.h
index b7acdd344c..484bc4dc7a 100644
--- a/firmware/export/screendump.h
+++ b/firmware/export/screendump.h
@@ -39,28 +39,18 @@
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#ifndef BMP_BPP
43#if LCD_DEPTH <= 4 42#if LCD_DEPTH <= 4
44#define BMP_BPP 4 43#define DUMP_BMP_BPP 4
44#define DUMP_BMP_LINESIZE ((LCD_WIDTH/2 + 3) & ~3)
45#elif LCD_DEPTH <= 8 45#elif LCD_DEPTH <= 8
46#define BMP_BPP 8 46#define DUMP_BMP_BPP 8
47#define DUMP_BMP_LINESIZE ((LCD_WIDTH + 3) & ~3)
47#elif LCD_DEPTH <= 16 48#elif LCD_DEPTH <= 16
48#define BMP_BPP 16 49#define DUMP_BMP_BPP 16
50#define DUMP_BMP_LINESIZE ((LCD_WIDTH*2 + 3) & ~3)
49#else 51#else
50#define BMP_BPP 24 52#define DUMP_BMP_BPP 24
51#endif 53#define DUMP_BMP_LINESIZE ((LCD_WIDTH*3 + 3) & ~3)
52#endif
53
54#ifndef BMP_LINESIZE
55#if LCD_DEPTH <= 4
56#define BMP_LINESIZE ((LCD_WIDTH/2 + 3) & ~3)
57#elif LCD_DEPTH <= 8
58#define BMP_LINESIZE ((LCD_WIDTH + 3) & ~3)
59#elif LCD_DEPTH <= 16
60#define BMP_LINESIZE ((LCD_WIDTH*2 + 3) & ~3)
61#else
62#define BMP_LINESIZE ((LCD_WIDTH*3 + 3) & ~3)
63#endif
64#endif 54#endif
65 55
66#ifdef BOOTLOADER 56#ifdef BOOTLOADER