mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 02:48:26 +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)
|
||||
return -EINVAL;
|
||||
|
||||
red >>= 8;
|
||||
green >>= 8;
|
||||
blue >>= 8;
|
||||
|
||||
((uint32_t*)fb->pseudo_palette)[regno] = red << 16 | green << 8 | blue;
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user