diff options
author | Dave Chapman <dave@dchapman.com> | 2006-02-27 19:14:49 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2006-02-27 19:14:49 +0000 |
commit | 4b5b8b5965f8814bbb40399610da5b1b275a4e12 (patch) | |
tree | c40690295b62f4b1a9fec36b434d3b2214140d7d /apps/plugins/rockboy | |
parent | 569c83927dbee7f3c534023dfa122e59e64bcbf8 (diff) | |
download | rockbox-4b5b8b5965f8814bbb40399610da5b1b275a4e12.tar.gz rockbox-4b5b8b5965f8814bbb40399610da5b1b275a4e12.zip |
Correctly byte-swap the pixel values for the iPod 4G Color and Nano - this fixes the colours for those players
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8860 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/rockboy')
-rw-r--r-- | apps/plugins/rockboy/lcd.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/plugins/rockboy/lcd.c b/apps/plugins/rockboy/lcd.c index c1a7a87b6b..4fb4dd2dc0 100644 --- a/apps/plugins/rockboy/lcd.c +++ b/apps/plugins/rockboy/lcd.c | |||
@@ -1090,7 +1090,13 @@ static void updatepalette(int i) | |||
1090 | r = (r >> fb.cc[0].r) << fb.cc[0].l; | 1090 | r = (r >> fb.cc[0].r) << fb.cc[0].l; |
1091 | g = (g >> fb.cc[1].r) << fb.cc[1].l; | 1091 | g = (g >> fb.cc[1].r) << fb.cc[1].l; |
1092 | b = (b >> fb.cc[2].r) << fb.cc[2].l; | 1092 | b = (b >> fb.cc[2].r) << fb.cc[2].l; |
1093 | |||
1094 | #if LCD_PIXELFORMAT == RGB565 | ||
1093 | c = r|g|b; | 1095 | c = r|g|b; |
1096 | #elif LCD_PIXELFORMAT == RGB565SWAPPED | ||
1097 | c = swap16(r|g|b); | ||
1098 | #endif | ||
1099 | |||
1094 | 1100 | ||
1095 | switch (fb.pelsize) | 1101 | switch (fb.pelsize) |
1096 | { | 1102 | { |