mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
rockboy: fix wrong colors on some targets
This bug was found and located by a forum user, see https://forums.rockbox.org/index.php/topic,54776.0.html The old code used the FB_SCALARPACK macro which doesn't respect swapped byte order. Using FB_RGBPACK fixes it and furthermore makes the fb.cc[] array superfluous. I added a small optimization for 16 bit targets, since the gameboy colors almost fit perfectly (5 bit per color). Change-Id: If96b3943cb4ab902b880ff3d471add25e138fe8e
This commit is contained in:
parent
e0cc87fd3f
commit
5e7a4290b2
3 changed files with 14 additions and 33 deletions
|
|
@ -10,12 +10,7 @@
|
|||
|
||||
struct fb
|
||||
{
|
||||
#ifdef HAVE_LCD_COLOR
|
||||
struct
|
||||
{
|
||||
int l, r;
|
||||
} cc[3];
|
||||
#else
|
||||
#ifndef HAVE_LCD_COLOR
|
||||
int mode;
|
||||
#endif
|
||||
int enabled;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue