diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2006-10-11 23:26:17 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2006-10-11 23:26:17 +0000 |
commit | fa0ea19d5a31946c08f44d1e3320ca5399ba51eb (patch) | |
tree | 05128c7228a8cc3a74830f0b38eb65563a8bb2f0 /apps/recorder/bmp.c | |
parent | dc708c32a4fcb88edf7c7bcc34098cb7088757e5 (diff) |
Fixed the problem with the backdrops on iPod. The same problem was in the updated color picker and that is fixed too.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11195 a1c6a512-1295-4272-9138-f99709370657
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 @@ #pragma pack (push, 2) #endif +//#undef LCD_RGBPACK +//#define LCD_RGBPACK(r, g, b) swap16(_RGBPACK((r), (g), (b))) + + /* Struct from original code. */ struct Fileheader { unsigned short Type; /* signature - 'BM' */ @@ -128,7 +132,7 @@ static unsigned short dither_24_to_16(struct rgb_quad rgb, int row, int col) color = (unsigned short)(b | (g << 5) | (r << 11)); #if LCD_PIXELFORMAT == RGB565SWAPPED - swap16(color); + color = swap16(color); #endif return color; } |