mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
OMAPFB: fix framebuffer console colors
commit c1c52848ce
upstream.
omapfb does not currently set pseudo palette correctly for color depths
above 16bpp, making red text invisible, command like
echo -e '\e[0;31mRED' > /dev/tty1
will display nothing on framebuffer console in 24bpp mode.
This is because temporary variable is declared incorrectly, fix it.
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Cc: Qiang Huang <h.huangqiang@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c81c26ff16
commit
faf100389a
1 changed files with 1 additions and 1 deletions
|
@ -1187,7 +1187,7 @@ static int _setcolreg(struct fb_info *fbi, u_int regno, u_int red, u_int green,
|
|||
break;
|
||||
|
||||
if (regno < 16) {
|
||||
u16 pal;
|
||||
u32 pal;
|
||||
pal = ((red >> (16 - var->red.length)) <<
|
||||
var->red.offset) |
|
||||
((green >> (16 - var->green.length)) <<
|
||||
|
|
Loading…
Reference in a new issue