Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fbcon: bgcolor fix

The fourth bit of the background color is the blink property bit, not the
intensity bit, as for the foreground color. Therefore it shouldn't be
included in the background color.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Krzysztof Helt <krzysztof.h1@poczta.fm>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Stefano Stabellini and committed by
Linus Torvalds
2d04a4a7 4a25e418

+1 -1
+1 -1
drivers/video/console/fbcon.h
··· 92 92 #define attr_fgcol(fgshift,s) \ 93 93 (((s) >> (fgshift)) & 0x0f) 94 94 #define attr_bgcol(bgshift,s) \ 95 - (((s) >> (bgshift)) & 0x0f) 95 + (((s) >> (bgshift)) & 0x07) 96 96 97 97 /* Monochrome */ 98 98 #define attr_bold(s) \