svn commit: r316796 - head/sys/dev/vt
Jung-uk Kim
jkim at FreeBSD.org
Thu Apr 13 23:00:27 UTC 2017
Author: jkim
Date: Thu Apr 13 23:00:26 2017
New Revision: 316796
URL: https://svnweb.freebsd.org/changeset/base/316796
Log:
Attempt to clear logos more thoroughly.
PR: 202288
Reviewed by: cem
Modified:
head/sys/dev/vt/vt_cpulogos.c
Modified: head/sys/dev/vt/vt_cpulogos.c
==============================================================================
--- head/sys/dev/vt/vt_cpulogos.c Thu Apr 13 22:59:17 2017 (r316795)
+++ head/sys/dev/vt/vt_cpulogos.c Thu Apr 13 23:00:26 2017 (r316796)
@@ -153,6 +153,7 @@ vt_fini_logos(void *dummy __unused)
struct winsize wsz;
term_pos_t size;
unsigned int i;
+ int row;
if (!vt_draw_logo_cpus)
return;
@@ -170,7 +171,7 @@ vt_fini_logos(void *dummy __unused)
vt_draw_logo_cpus = 0;
VT_UNLOCK(vd);
- for (i = 0; i < VT_MAXWINDOWS; i++) {
+ for (i = row = 0; i < VT_MAXWINDOWS; i++) {
vw = vd->vd_windows[i];
if (vw == NULL)
continue;
@@ -193,11 +194,16 @@ vt_fini_logos(void *dummy __unused)
vt_compute_drawable_area(vw);
if (vd->vd_curwindow == vw) {
+ row = vw->vw_draw_area.tr_begin.tp_row;
vd->vd_flags |= VDF_INVALID;
vt_resume_flush_timer(vd, 0);
}
VT_UNLOCK(vd);
}
+
+ if (row > 0 && vd->vd_driver->vd_drawrect != NULL)
+ vd->vd_driver->vd_drawrect(vd, 0, 0, vd->vd_width, row - 1,
+ 1, TC_BLACK);
}
static void
More information about the svn-src-head
mailing list