aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2018-12-29 16:57:44 +0100
committerBoris Faure <billiob@gmail.com>2018-12-29 16:57:44 +0100
commit9cb340e29f97f64af1146c426e14a6374d480110 (patch)
tree9fb68ac4a88759134cdcb40d1564697d8b452ec5
parenttermptyesc: refuse no value on decfra on the character to fill up + tests (diff)
downloadterminology-9cb340e29f97f64af1146c426e14a6374d480110.tar.gz
termio: inverse colors only after applying bold/faint (more precise)
-rw-r--r--src/bin/termio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/termio.c b/src/bin/termio.c
index 13278bb..f749ece 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -5165,14 +5165,14 @@ _smart_apply(Evas_Object *obj)
}
if ((cells[x].att.fgintense) && (!fgext)) fg += 48;
if ((cells[x].att.bgintense) && (!bgext)) bg += 48;
+ if ((cells[x].att.bold) && (!fgext)) fg += 12;
+ if ((cells[x].att.faint) && (!fgext)) fg += 24;
if (cells[x].att.inverse ^ inv)
{
int t;
t = fgext; fgext = bgext; bgext = t;
t = fg; fg = bg; bg = t;
}
- if ((cells[x].att.bold) && (!fgext)) fg += 12;
- if ((cells[x].att.faint) && (!fgext)) fg += 24;
if ((tc[x].codepoint != codepoint) ||
(tc[x].bold != bold) ||
(tc[x].italic != italic) ||