mirror of https://github.com/cy384/ssheven.git
fix occasional cursor glitches
This commit is contained in:
parent
074059f648
commit
e8ba3bdd97
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue