From ae0ae6d5cf85ecd578b58a37a9a1839acf88c2cb Mon Sep 17 00:00:00 2001 From: Christi Scarborough Date: Tue, 31 Jan 2006 14:29:51 +0000 Subject: Small iPod colour BMP fix by linuxstd git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8504 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/bmp.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'apps/recorder') diff --git a/apps/recorder/bmp.c b/apps/recorder/bmp.c index e41bd2dd77..598d26ba29 100644 --- a/apps/recorder/bmp.c +++ b/apps/recorder/bmp.c @@ -68,11 +68,6 @@ struct rgb_quad { /* Little endian */ unsigned char reserved; } STRUCT_PACKED; -#ifdef ROCKBOX_LITTLE_ENDIAN -#define readshort(x) *(x) -#define readlong(x) *(x) -#else - /* big endian functions */ static short readshort(short *value) { unsigned char* bytes = (unsigned char*) value; @@ -85,8 +80,6 @@ static long readlong(long *value) { ((long)bytes[2] << 16) | ((long)bytes[3] << 24); } -#endif - unsigned char brightness(struct rgb_quad color) { return (3 * (unsigned int)color.red + 6 * (unsigned int)color.green -- cgit v1.2.3