colors: do not use bold/bright and faint/dim at the same time

In that case: use the bold font weight if available and the faint color
This commit is contained in:
Boris Faure 2020-10-26 22:41:02 +01:00
parent 7d4bd31e9d
commit 6ff8b36a23
Signed by: borisfaure
GPG Key ID: 35C0410516166BE8
1 changed files with 2 additions and 2 deletions

View File

@ -2659,9 +2659,9 @@ termio_internal_render(Termio *sd,
fg += 48;
if ((cells[x].att.bgintense) && (!bgext))
bg += 48;
if ((cells[x].att.bold) && (!fgext))
if ((cells[x].att.bold && !cells[x].att.faint) && (!fgext))
fg += 12;
if ((cells[x].att.faint) && (!fgext))
else if ((cells[x].att.faint) && (!fgext))
fg += 24;
if (cells[x].att.inverse ^ inv)
{