]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] fbdev: Fix greater than 1 bit monochrome color handling
authorAntonino A. Daplas <adaplas@gmail.com>
Fri, 9 Sep 2005 20:04:37 +0000 (13:04 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 9 Sep 2005 20:58:00 +0000 (13:58 -0700)
commitb8c909454f046b59065c6997b651fe20cd90c0f4
tree2a8e03fe69c1b02dc610f57208d693e05b95969c
parent094bb659f53b6d90aab6067268d6d14f1f352d30
[PATCH] fbdev: Fix greater than 1 bit monochrome color handling

Currently, fbcon assumes that the visual FB_VISUAL_MONO* is always 1 bit.
According to Geert, there are old hardware where it's possible to have
monochrome at 8-bit, but has only 2 colors, black - 0x00 and white - 0xff.
Fix color handlers (fb_get_color_depth, and get_color) for this special case.

Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/console/bitblit.c
drivers/video/console/fbcon.c
drivers/video/fbmem.c
drivers/video/nvidia/nvidia.c
include/linux/fb.h