patch: Fixing console text colors

Xiangfu Liu xiangfu at sharism.cc
Sun Jul 11 21:14:11 EDT 2010


Hi Rikard

applied. thanks.


On 07/12/2010 12:07 AM, Rikard Lindström wrote:
> diff --git a/target/linux/xburst/files-2.6.32/drivers/video/jz4740_fb.c
> b/target/linux/xburst/files-2.6.32/drivers/video/jz4740_fb.c
> index eeb702a..4f71708 100644
> --- a/target/linux/xburst/files-2.6.32/drivers/video/jz4740_fb.c
> +++ b/target/linux/xburst/files-2.6.32/drivers/video/jz4740_fb.c
> @@ -221,6 +221,10 @@ static int jzfb_setcolreg(unsigned regno,
> unsigned red, unsigned green, unsigned
>   	if (regno>= fb->cmap.len)
>   		return -EINVAL;
>
> +	red>>= 8;
> +	green>>= 8;
> +	blue>>= 8;
> +
>   	((uint32_t*)fb->pseudo_palette)[regno] = red<<  16 | green<<  8 | blue;
>
>   	return 0;
>
> _______________________________________________
> Qi Developer Mailing List
> Mail to list (members only): developer at lists.qi-hardware.com
> Subscribe or Unsubscribe: http://en.qi-hardware.com/mailman/listinfo/developer


-- 
Best Regards
Xiangfu Liu
http://www.nanonote.cc




More information about the discussion mailing list


interactive