summaryrefslogtreecommitdiff
path: root/libcons/vcons-refresh.c
diff options
context:
space:
mode:
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,