1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-21 13:05:04 -05:00

Setting an 8-bit colour should cancel a 24-bit colour

This commit is contained in:
Jeff Smith 2017-10-13 22:49:25 -05:00 committed by Simon Tatham
parent 916a2574d5
commit 298b9fd4d4

View File

@ -4031,6 +4031,8 @@ static void term_out(Terminal *term)
term->curr_attr |=
((term->esc_args[i+2] & 0xFF)
<< ATTR_FGSHIFT);
term->curr_truecolour.fg =
optionalrgb_none;
i += 2;
}
if (i + 4 < term->esc_nargs &&
@ -4048,6 +4050,8 @@ static void term_out(Terminal *term)
term->curr_attr |=
((term->esc_args[i+2] & 0xFF)
<< ATTR_BGSHIFT);
term->curr_truecolour.bg =
optionalrgb_none;
i += 2;
}
if (i + 4 < term->esc_nargs &&