From dbe4c7712b652b7ad3126e94c47b00fa2bbb0a05 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Tue, 17 Sep 2002 11:47:15 +0000 Subject: 2002-09-16 Marcus Brinkmann * cons.h: Add prototype for cons_vcons_clear. * file-changed.c (cons_S_file_changed): Prepare all areas we write to with cons_vcons_clear (unless we use cons_vcons_scroll already). * vcons-refresh.c (cons_vcons_refresh): Likewise. * vcons-scrollback.c (_cons_vcons_scrollback): Likewise. --- libcons/vcons-refresh.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libcons/vcons-refresh.c') diff --git a/libcons/vcons-refresh.c b/libcons/vcons-refresh.c index c2db2c57..7851618a 100644 --- a/libcons/vcons-refresh.c +++ b/libcons/vcons-refresh.c @@ -37,6 +37,8 @@ cons_vcons_refresh (vcons_t vcons) vcons->state.flags = vcons->display->flags; vcons->state.changes.written = vcons->display->changes.written; + cons_vcons_clear (vcons, vcons->state.screen.width + * vcons->state.screen.height, 0, 0); cons_vcons_write (vcons, vcons->state.screen.matrix + (vcons->state.screen.cur_line % vcons->state.screen.lines) * vcons->state.screen.width, -- cgit v1.2.3