]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
OMAPFB: fix framebuffer console colors
authorGrazvydas Ignotas <notasas@gmail.com>
Tue, 21 Aug 2012 06:09:48 +0000 (09:09 +0300)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 19 Sep 2012 14:04:31 +0000 (15:04 +0100)
commit c1c52848cef52e157468b8879fc3cae23b6f3a99 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>
drivers/video/omap2/omapfb/omapfb-main.c

index 70aa47de7146fdc881dff6e9060976c005b1cf77..f7c17534657eb3d02293d184a4c199dff45ec9d9 100644 (file)
@@ -1183,7 +1183,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)) <<