mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
gxt4500: fix 16bpp 565 mode
Fix wrong colors in 16bpp 565 mode. Signed-off-by: Ondrej Zary <[email protected]> Signed-off-by: Tomi Valkeinen <[email protected]>
This commit is contained in:
parent
031e37f8c9
commit
21d447985c
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue