From 2bb8ac431f5c8579f4b213bab348c216deaa0e14 Mon Sep 17 00:00:00 2001 From: cy384 Date: Sat, 29 Aug 2020 21:14:59 -0400 Subject: [PATCH] add reverse video --- ssheven-console.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ssheven-console.c b/ssheven-console.c index eb65160..020cdc9 100644 --- a/ssheven-console.c +++ b/ssheven-console.c @@ -58,6 +58,7 @@ void draw_screen(Rect* r) VTermScreenCell vtsc; short face = normal; char c; + Rect cr; for(int i = minRow; i < maxRow; i++) { @@ -73,6 +74,12 @@ void draw_screen(Rect* r) if (face != normal) TextFace(face); draw_char(j, i, r, c); if (face != normal) TextFace(normal); + + if (vtsc.attrs.reverse) + { + cr = cell_rect(j,i,con.win->portRect); + InvertRect(&cr); + } } }