diff options
Diffstat (limited to 'apps/recorder/bmp.c')
-rw-r--r-- | apps/recorder/bmp.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/recorder/bmp.c b/apps/recorder/bmp.c index f0f143f442..41057535fb 100644 --- a/apps/recorder/bmp.c +++ b/apps/recorder/bmp.c | |||
@@ -42,6 +42,10 @@ | |||
42 | #pragma pack (push, 2) | 42 | #pragma pack (push, 2) |
43 | #endif | 43 | #endif |
44 | 44 | ||
45 | //#undef LCD_RGBPACK | ||
46 | //#define LCD_RGBPACK(r, g, b) swap16(_RGBPACK((r), (g), (b))) | ||
47 | |||
48 | |||
45 | /* Struct from original code. */ | 49 | /* Struct from original code. */ |
46 | struct Fileheader { | 50 | struct Fileheader { |
47 | unsigned short Type; /* signature - 'BM' */ | 51 | unsigned short Type; /* signature - 'BM' */ |
@@ -128,7 +132,7 @@ static unsigned short dither_24_to_16(struct rgb_quad rgb, int row, int col) | |||
128 | color = (unsigned short)(b | (g << 5) | (r << 11)); | 132 | color = (unsigned short)(b | (g << 5) | (r << 11)); |
129 | 133 | ||
130 | #if LCD_PIXELFORMAT == RGB565SWAPPED | 134 | #if LCD_PIXELFORMAT == RGB565SWAPPED |
131 | swap16(color); | 135 | color = swap16(color); |
132 | #endif | 136 | #endif |
133 | return color; | 137 | return color; |
134 | } | 138 | } |