From fa0ea19d5a31946c08f44d1e3320ca5399ba51eb Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Wed, 11 Oct 2006 23:26:17 +0000 Subject: 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 --- apps/recorder/bmp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'apps/recorder/bmp.c') 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; } -- cgit v1.2.3