1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-27 22:53:09 +02:00

[xburst] [kernel] Fixing console text colors, thanks Rikard

This commit is contained in:
Xiangfu Liu 2010-07-12 08:45:50 +08:00
parent 5c418bdbf3
commit e131401cbe

View File

@ -221,6 +221,10 @@ static int jzfb_setcolreg(unsigned regno, unsigned red, unsigned green, unsigned
if (regno >= fb->cmap.len) if (regno >= fb->cmap.len)
return -EINVAL; return -EINVAL;
red >>= 8;
green >>= 8;
blue >>= 8;
((uint32_t*)fb->pseudo_palette)[regno] = red << 16 | green << 8 | blue; ((uint32_t*)fb->pseudo_palette)[regno] = red << 16 | green << 8 | blue;
return 0; return 0;