fix occasional cursor glitches

This commit is contained in:
cy384 2020-08-22 14:44:25 -04:00
parent 074059f648
commit e8ba3bdd97
1 changed files with 8 additions and 0 deletions

View File

@ -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)
{