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:
parent
5c418bdbf3
commit
e131401cbe
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user