vt: fix \e[2m using the wrong placeholder color on graphical consoles
authorAdam Borowski <kilobyte@angband.pl>
Sat, 3 Jun 2017 07:08:25 +0000 (09:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jun 2017 09:20:08 +0000 (11:20 +0200)
Only vgacon and sisusbcon did it right, the rest (via generic code) tried
underline (usually cyan).

Signed-off-by: Adam Borowski <kilobyte@angband.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/vt.c

index bacc48b0b4b858ac586f68aeafdeb8cd6be67acd..2ebaba16f7858ec2ac0b0395af2c16d5d98a8273 100644 (file)
@@ -425,7 +425,7 @@ static u8 build_attr(struct vc_data *vc, u8 _color, u8 _intensity, u8 _blink,
        else if (_underline)
                a = (a & 0xf0) | vc->vc_ulcolor;
        else if (_intensity == 0)
-               a = (a & 0xf0) | vc->vc_ulcolor;
+               a = (a & 0xf0) | vc->vc_halfcolor;
        if (_reverse)
                a = ((a) & 0x88) | ((((a) >> 4) | ((a) << 4)) & 0x77);
        if (_blink)