[U-Boot] [PATCH V2 6/9] lcd: make 16bpp work

Anatolij Gustschin agust at denx.de
Sun Nov 29 23:13:05 CET 2009


Alessandro Rubini <rubini-list at gnudd.com> wrote:

<snip>
>  #elif LCD_BPP == LCD_COLOR16
> -			for (c=0; c<16; ++c) {
> -				*d++ = (bits & 0x80) ?
> -						lcd_color_fg : lcd_color_bg;
> +			for (c=0; c<8; ++c) {
> +				*d++ = (bits & 0x80) ? 0xffff : 0;

I think we should use 'lcd_color_fg' and 'lcd_color_bg' here.

Best regards,
Anatolij


More information about the U-Boot mailing list