mirror of https://github.com/mintsuki/flanterm
Fix issue where 39 and 49 SGR codes would not respect bold setting
This commit is contained in:
parent
23024c038f
commit
5d3e0ddccf
12
term.c
12
term.c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue