forked from len0rd/rockbox
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
This commit is contained in:
parent
569c83927d
commit
4b5b8b5965
1 changed files with 6 additions and 0 deletions
|
|
@ -1090,7 +1090,13 @@ static void updatepalette(int i)
|
||||||
r = (r >> fb.cc[0].r) << fb.cc[0].l;
|
r = (r >> fb.cc[0].r) << fb.cc[0].l;
|
||||||
g = (g >> fb.cc[1].r) << fb.cc[1].l;
|
g = (g >> fb.cc[1].r) << fb.cc[1].l;
|
||||||
b = (b >> fb.cc[2].r) << fb.cc[2].l;
|
b = (b >> fb.cc[2].r) << fb.cc[2].l;
|
||||||
|
|
||||||
|
#if LCD_PIXELFORMAT == RGB565
|
||||||
c = r|g|b;
|
c = r|g|b;
|
||||||
|
#elif LCD_PIXELFORMAT == RGB565SWAPPED
|
||||||
|
c = swap16(r|g|b);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
switch (fb.pelsize)
|
switch (fb.pelsize)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue