diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2006-01-31 00:40:14 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2006-01-31 00:40:14 +0000 |
commit | ea72d05ec6426b65d52fcbcfbbb008351830583f (patch) | |
tree | b8ceafb4897decb40b301e4ea9da19ba24ddf3bc /apps | |
parent | d3784e5d082e114243d846685b50f31886ed5b7c (diff) | |
download | rockbox-ea72d05ec6426b65d52fcbcfbbb008351830583f.tar.gz rockbox-ea72d05ec6426b65d52fcbcfbbb008351830583f.zip |
Fixed endianness problem in the BMP loader
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8498 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/recorder/bmp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/recorder/bmp.c b/apps/recorder/bmp.c index eb9bf903a6..e41bd2dd77 100644 --- a/apps/recorder/bmp.c +++ b/apps/recorder/bmp.c | |||
@@ -344,9 +344,7 @@ int read_bmp_file(char* filename, | |||
344 | } else { | 344 | } else { |
345 | /* RGB24 -> RGB16 */ | 345 | /* RGB24 -> RGB16 */ |
346 | for (col = 0; col < width; col++) { | 346 | for (col = 0; col < width; col++) { |
347 | unsigned short rgb = (((p[2] >> 3) << 11) | | 347 | unsigned short rgb = LCD_RGBPACK(p[2],p[1],p[0]); |
348 | ((p[1] >> 2) << 5) | | ||
349 | ((p[0] >> 3))); | ||
350 | dest[width * (height - row - 1) + col] = rgb; | 348 | dest[width * (height - row - 1) + col] = rgb; |
351 | p += 3; | 349 | p += 3; |
352 | } | 350 | } |