Commit 2d04a4a7 authored by Stefano Stabellini's avatar Stefano Stabellini Committed by Linus Torvalds

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: default avatarStefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Krzysztof Helt <krzysztof.h1@poczta.fm>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 4a25e418
...@@ -92,7 +92,7 @@ struct fbcon_ops { ...@@ -92,7 +92,7 @@ struct fbcon_ops {
#define attr_fgcol(fgshift,s) \ #define attr_fgcol(fgshift,s) \
(((s) >> (fgshift)) & 0x0f) (((s) >> (fgshift)) & 0x0f)
#define attr_bgcol(bgshift,s) \ #define attr_bgcol(bgshift,s) \
(((s) >> (bgshift)) & 0x0f) (((s) >> (bgshift)) & 0x07)
/* Monochrome */ /* Monochrome */
#define attr_bold(s) \ #define attr_bold(s) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment