Skip to content

Commit

Permalink
fbcon: bgcolor fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stefano Stabellini authored and Linus Torvalds committed Jul 24, 2008
1 parent 4a25e41 commit 2d04a4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/console/fbcon.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ struct fbcon_ops {
#define attr_fgcol(fgshift,s) \
(((s) >> (fgshift)) & 0x0f)
#define attr_bgcol(bgshift,s) \
(((s) >> (bgshift)) & 0x0f)
(((s) >> (bgshift)) & 0x07)

/* Monochrome */
#define attr_bold(s) \
Expand Down

0 comments on commit 2d04a4a

Please sign in to comment.