mirror of https://gitee.com/openkylin/linux.git
[PATCH] ARM: IntegratorCP: 16bpp is RGB565 not RGB555
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
This commit is contained in:
parent
1ddb8a16aa
commit
ed562ab127
|
@ -134,16 +134,16 @@ clcdfb_set_bitfields(struct clcd_fb *fb, struct fb_var_screeninfo *var)
|
||||||
break;
|
break;
|
||||||
case 16:
|
case 16:
|
||||||
var->red.length = 5;
|
var->red.length = 5;
|
||||||
var->green.length = 5;
|
var->green.length = 6;
|
||||||
var->blue.length = 5;
|
var->blue.length = 5;
|
||||||
if (fb->panel->cntl & CNTL_BGR) {
|
if (fb->panel->cntl & CNTL_BGR) {
|
||||||
var->red.offset = 10;
|
var->red.offset = 11;
|
||||||
var->green.offset = 5;
|
var->green.offset = 5;
|
||||||
var->blue.offset = 0;
|
var->blue.offset = 0;
|
||||||
} else {
|
} else {
|
||||||
var->red.offset = 0;
|
var->red.offset = 0;
|
||||||
var->green.offset = 5;
|
var->green.offset = 5;
|
||||||
var->blue.offset = 10;
|
var->blue.offset = 11;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 32:
|
case 32:
|
||||||
|
|
Loading…
Reference in New Issue