[PATCH] fbcon: Saner 16-color to 4-color conversion
authorAntonino A. Daplas <adaplas@gmail.com>
Fri, 9 Sep 2005 20:04:38 +0000 (13:04 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 9 Sep 2005 20:58:00 +0000 (13:58 -0700)
commit2cc38ed13f1b0f9d80a2d0acc2916af94922f27e
treea556d3b71c2bca72762255f79f2de17a606382a7
parentb8c909454f046b59065c6997b651fe20cd90c0f4
[PATCH] fbcon: Saner 16-color to 4-color conversion

Currently, the default linux 16-colors are converted to 4-colors by simply
dividing the values by 4.  However, this is not necessarily correct since the
first 4 colors are converted to black, rendering them invisible.

So, for black, no conversion; for light colors, convert to gray, for normal
text color, no conversion, and for bright colors, convert to intense white.

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/fbcon.c