1
0
Fork 0
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:
Dave Chapman 2006-02-27 19:14:49 +00:00
parent 569c83927d
commit 4b5b8b5965

View file

@ -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)
{ {