Fix issue where 39 and 49 SGR codes would not respect bold setting

This commit is contained in:
mintsuki 2022-12-27 06:05:16 +01:00
parent 23024c038f
commit 5d3e0ddccf
1 changed files with 10 additions and 2 deletions

12
term.c
View File

@ -251,7 +251,11 @@ set_bg_bright:
ctx->swap_palette(ctx);
}
ctx->set_text_fg_default(ctx);
if (!ctx->bold) {
ctx->set_text_fg_default(ctx);
} else {
ctx->set_text_fg_default_bright(ctx);
}
if (ctx->reverse_video) {
ctx->swap_palette(ctx);
@ -267,7 +271,11 @@ set_bg_bright:
ctx->swap_palette(ctx);
}
ctx->set_text_bg_default(ctx);
if (!ctx->bg_bold) {
ctx->set_text_bg_default(ctx);
} else {
ctx->set_text_bg_default_bright(ctx);
}
if (ctx->reverse_video) {
ctx->swap_palette(ctx);