From e8ba3bdd972f22a4aee04f65c0bf4cea8a544a43 Mon Sep 17 00:00:00 2001 From: cy384 Date: Sat, 22 Aug 2020 14:44:25 -0400 Subject: [PATCH] fix occasional cursor glitches --- ssheven-console.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ssheven-console.c b/ssheven-console.c index 6766e40..faf4828 100644 --- a/ssheven-console.c +++ b/ssheven-console.c @@ -110,6 +110,14 @@ int is_printable(char c) void print_char(char c) { + if (con.cursor_state == 1) + { + con.cursor_state = 0; + Rect cursor = cell_rect(con.cursor_x, con.cursor_y, con.win->portRect); + //InvertRect(&cursor); + InvalRect(&cursor); + } + // backspace if ('\b' == c) {