summaryrefslogtreecommitdiff
path: root/firmware/export/lcd.h
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2005-11-19 02:06:46 +0000
committerDave Chapman <dave@dchapman.com>2005-11-19 02:06:46 +0000
commit260f8d3480d5c9ae2f8973050dd4c383baeda687 (patch)
treeee35007e0a45ea31b5eb80e68c9e1df03123f590 /firmware/export/lcd.h
parentbbe919bdcb1f0f4339c46c0f5f405bf1378b9408 (diff)
Add LCD_PIXELFORMAT config variable to distinguish between the two types of 16-bit framebuffers (the ipod framebuffer is byte-swapped)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7977 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/lcd.h')
-rw-r--r--firmware/export/lcd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h
index 48244fe2a8..bd9c49fee7 100644
--- a/firmware/export/lcd.h
+++ b/firmware/export/lcd.h
@@ -146,7 +146,7 @@ typedef void lcd_blockfunc_type(unsigned char *address, unsigned mask, unsigned
#define _RGBPACK(r, g, b) ( ((((r) * 31 + 127) / 255) << 11) \
|((((g) * 63 + 127) / 255) << 5) \
| (((b) * 31 + 127) / 255))
-#if (CONFIG_LCD == LCD_IPODCOLOR) || (CONFIG_LCD == LCD_IPODNANO)
+#if (LCD_PIXELFORMAT == RGB565SWAPPED)
#define LCD_RGBPACK(r, g, b) ( ((_RGBPACK((r), (g), (b)) & 0xff00) >> 8) \
|((_RGBPACK((r), (g), (b)) & 0x00ff) << 8))
#else