mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-17 11:00:59 -05:00
Cleanup: make symbolic names for CONF_bold_style bits.
CONF_bold_style is a pair of bit flags rather than an enum, so its values aren't just BOLD_STYLE_FONT and BOLD_STYLE_COLOUR but also the bitwise OR of them. (Hopefully not neither.)
This commit is contained in:
@ -3896,11 +3896,11 @@ static void do_text_internal(
|
||||
truecolour.fg = truecolour.bg;
|
||||
truecolour.bg = trgb;
|
||||
}
|
||||
if ((inst->bold_style & 2) && (attr & ATTR_BOLD)) {
|
||||
if ((inst->bold_style & BOLD_STYLE_COLOUR) && (attr & ATTR_BOLD)) {
|
||||
if (nfg < 16) nfg |= 8;
|
||||
else if (nfg >= 256) nfg |= 1;
|
||||
}
|
||||
if ((inst->bold_style & 2) && (attr & ATTR_BLINK)) {
|
||||
if ((inst->bold_style & BOLD_STYLE_COLOUR) && (attr & ATTR_BLINK)) {
|
||||
if (nbg < 16) nbg |= 8;
|
||||
else if (nbg >= 256) nbg |= 1;
|
||||
}
|
||||
@ -3920,7 +3920,7 @@ static void do_text_internal(
|
||||
widefactor = 1;
|
||||
}
|
||||
|
||||
if ((attr & ATTR_BOLD) && (inst->bold_style & 1)) {
|
||||
if ((attr & ATTR_BOLD) && (inst->bold_style & BOLD_STYLE_FONT)) {
|
||||
bold = true;
|
||||
fontid |= 1;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user