Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Mar 2018 08:02:51 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r330642 - stable/11/sys/dev/vt
Message-ID:  <201803080802.w2882poC080010@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Thu Mar  8 08:02:51 2018
New Revision: 330642
URL: https://svnweb.freebsd.org/changeset/base/330642

Log:
  MFC r316796:
  
  Attempt to clear logos more thoroughly.
  
  PR:		202288

Modified:
  stable/11/sys/dev/vt/vt_cpulogos.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/vt/vt_cpulogos.c
==============================================================================
--- stable/11/sys/dev/vt/vt_cpulogos.c	Thu Mar  8 07:57:26 2018	(r330641)
+++ stable/11/sys/dev/vt/vt_cpulogos.c	Thu Mar  8 08:02:51 2018	(r330642)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803080802.w2882poC080010>