gxt4500: fix 16bpp 565 mode
Fix wrong colors in 16bpp 565 mode. Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
parent
031e37f8c9
commit
21d447985c
|
@ -525,7 +525,7 @@ static int gxt4500_setcolreg(unsigned int reg, unsigned int red,
|
|||
u32 val = reg;
|
||||
switch (par->pixfmt) {
|
||||
case DFA_PIX_16BIT_565:
|
||||
val |= (reg << 11) | (reg << 6);
|
||||
val |= (reg << 11) | (reg << 5);
|
||||
break;
|
||||
case DFA_PIX_16BIT_1555:
|
||||
val |= (reg << 10) | (reg << 5);
|
||||
|
|
Loading…
Reference in New Issue