Skip to content

Commit 2d04a4a

Browse files
Stefano Stabellinitorvalds
authored andcommitted
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>
1 parent 4a25e41 commit 2d04a4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/video/console/fbcon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ struct fbcon_ops {
9292
#define attr_fgcol(fgshift,s) \
9393
(((s) >> (fgshift)) & 0x0f)
9494
#define attr_bgcol(bgshift,s) \
95-
(((s) >> (bgshift)) & 0x0f)
95+
(((s) >> (bgshift)) & 0x07)
9696

9797
/* Monochrome */
9898
#define attr_bold(s) \

0 commit comments

Comments
 (0)