diff options
author | Michael Sparmann <theseven@rockbox.org> | 2010-10-25 12:52:02 +0000 |
---|---|---|
committer | Michael Sparmann <theseven@rockbox.org> | 2010-10-25 12:52:02 +0000 |
commit | 77129ad3ec7e1999a5177c8a49af64be78882566 (patch) | |
tree | 004c963db9a93fa9a5f962a68eddc083a1fd1662 /firmware/screendump.c | |
parent | 7c6bb3f4ace0e15e8ca964dc7ec9bf28632c85ce (diff) | |
download | rockbox-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/screendump.c')
-rw-r--r-- | firmware/screendump.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/firmware/screendump.c b/firmware/screendump.c index cd9d6a5bd6..30b9539732 100644 --- a/firmware/screendump.c +++ b/firmware/screendump.c | |||
@@ -50,7 +50,7 @@ | |||
50 | #endif /* LCD_DEPTH != 16 */ | 50 | #endif /* LCD_DEPTH != 16 */ |
51 | 51 | ||
52 | #define BMP_HEADERSIZE (54 + 4 * BMP_NUMCOLORS) | 52 | #define BMP_HEADERSIZE (54 + 4 * BMP_NUMCOLORS) |
53 | #define BMP_DATASIZE (BMP_LINESIZE * (LCD_HEIGHT+LCD_SPLIT_LINES)) | 53 | #define BMP_DATASIZE (DUMP_BMP_LINESIZE * (LCD_HEIGHT+LCD_SPLIT_LINES)) |
54 | #define BMP_TOTALSIZE (BMP_HEADERSIZE + BMP_DATASIZE) | 54 | #define BMP_TOTALSIZE (BMP_HEADERSIZE + BMP_DATASIZE) |
55 | 55 | ||
56 | static const unsigned char bmpheader[] = | 56 | static const unsigned char bmpheader[] = |
@@ -64,7 +64,7 @@ static const unsigned char bmpheader[] = | |||
64 | LE32_CONST(LCD_WIDTH), /* Width in pixels */ | 64 | LE32_CONST(LCD_WIDTH), /* Width in pixels */ |
65 | LE32_CONST(LCD_HEIGHT+LCD_SPLIT_LINES), /* Height in pixels */ | 65 | LE32_CONST(LCD_HEIGHT+LCD_SPLIT_LINES), /* Height in pixels */ |
66 | 0x01, 0x00, /* Number of planes (always 1) */ | 66 | 0x01, 0x00, /* Number of planes (always 1) */ |
67 | LE16_CONST(BMP_BPP), /* Bits per pixel 1/4/8/16/24 */ | 67 | LE16_CONST(DUMP_BMP_BPP), /* Bits per pixel 1/4/8/16/24 */ |
68 | LE32_CONST(BMP_COMPRESSION),/* Compression mode */ | 68 | LE32_CONST(BMP_COMPRESSION),/* Compression mode */ |
69 | LE32_CONST(BMP_DATASIZE), /* Size of bitmap data */ | 69 | LE32_CONST(BMP_DATASIZE), /* Size of bitmap data */ |
70 | 0xc4, 0x0e, 0x00, 0x00, /* Horizontal resolution (pixels/meter) */ | 70 | 0xc4, 0x0e, 0x00, 0x00, /* Horizontal resolution (pixels/meter) */ |
@@ -113,10 +113,10 @@ void screen_dump(void) | |||
113 | #endif | 113 | #endif |
114 | #if LCD_DEPTH <= 8 | 114 | #if LCD_DEPTH <= 8 |
115 | unsigned char *dst, *dst_end; | 115 | unsigned char *dst, *dst_end; |
116 | unsigned char linebuf[BMP_LINESIZE]; | 116 | unsigned char linebuf[DUMP_BMP_LINESIZE]; |
117 | #elif LCD_DEPTH <= 16 | 117 | #elif LCD_DEPTH <= 16 |
118 | unsigned short *dst, *dst_end; | 118 | unsigned short *dst, *dst_end; |
119 | unsigned short linebuf[BMP_LINESIZE/2]; | 119 | unsigned short linebuf[DUMP_BMP_LINESIZE/2]; |
120 | #endif | 120 | #endif |
121 | 121 | ||
122 | #if CONFIG_RTC | 122 | #if CONFIG_RTC |
@@ -141,13 +141,13 @@ void screen_dump(void) | |||
141 | /* BMP image goes bottom up */ | 141 | /* BMP image goes bottom up */ |
142 | for (y = LCD_HEIGHT - 1; y >= 0; y--) | 142 | for (y = LCD_HEIGHT - 1; y >= 0; y--) |
143 | { | 143 | { |
144 | memset(linebuf, 0, BMP_LINESIZE); | 144 | memset(linebuf, 0, DUMP_BMP_LINESIZE); |
145 | 145 | ||
146 | #if defined(HAVE_LCD_SPLIT) && (LCD_SPLIT_LINES == 2) | 146 | #if defined(HAVE_LCD_SPLIT) && (LCD_SPLIT_LINES == 2) |
147 | if (y == LCD_SPLIT_POS - 1) | 147 | if (y == LCD_SPLIT_POS - 1) |
148 | { | 148 | { |
149 | write(fd, linebuf, BMP_LINESIZE); | 149 | write(fd, linebuf, DUMP_BMP_LINESIZE); |
150 | write(fd, linebuf, BMP_LINESIZE); | 150 | write(fd, linebuf, DUMP_BMP_LINESIZE); |
151 | } | 151 | } |
152 | #endif | 152 | #endif |
153 | dst = linebuf; | 153 | dst = linebuf; |
@@ -228,7 +228,7 @@ void screen_dump(void) | |||
228 | while (dst < dst_end); | 228 | while (dst < dst_end); |
229 | 229 | ||
230 | #endif /* LCD_DEPTH */ | 230 | #endif /* LCD_DEPTH */ |
231 | write(fd, linebuf, BMP_LINESIZE); | 231 | write(fd, linebuf, DUMP_BMP_LINESIZE); |
232 | } | 232 | } |
233 | } | 233 | } |
234 | close(fd); | 234 | close(fd); |