summaryrefslogtreecommitdiff
path: root/libcons/vcons-refresh.c
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2002-09-17 11:47:15 +0000
committerMarcus Brinkmann <marcus@gnu.org>2002-09-17 11:47:15 +0000
commitdbe4c7712b652b7ad3126e94c47b00fa2bbb0a05 (patch)
treea42bb2ef70273394c238990d8182304f9ffd8317 /libcons/vcons-refresh.c
parent43e87b8a95aa36ab5a7f78de3034e081bac2e8ad (diff)
2002-09-16 Marcus Brinkmann <marcus@gnu.org>
* 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.
Diffstat (limited to 'libcons/vcons-refresh.c')
-rw-r--r--libcons/vcons-refresh.c2
1 files changed, 2 insertions, 0 deletions
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,