mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-30 19:12:48 -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:
@ -1402,9 +1402,11 @@ static void init_fonts(WinGuiSeat *wgs, int pick_width, int pick_height)
|
||||
for (i = 0; i < FONT_MAXNO; i++)
|
||||
wgs->fonts[i] = NULL;
|
||||
|
||||
wgs->bold_font_mode = conf_get_int(wgs->conf, CONF_bold_style) & 1 ?
|
||||
wgs->bold_font_mode =
|
||||
conf_get_int(wgs->conf, CONF_bold_style) & BOLD_STYLE_FONT ?
|
||||
BOLD_FONT : BOLD_NONE;
|
||||
wgs->bold_colours = conf_get_int(wgs->conf, CONF_bold_style) & 2 ?
|
||||
wgs->bold_colours =
|
||||
conf_get_int(wgs->conf, CONF_bold_style) & BOLD_STYLE_COLOUR ?
|
||||
true : false;
|
||||
wgs->und_mode = UND_FONT;
|
||||
|
||||
|
Reference in New Issue
Block a user