Thu Jan 28 17:40:00 2021 UTC ()
fix logic botch from previous - if we're asked to draw the cursor somewhere
else and it's still visible we need to clear it


(macallan)
diff -r1.50 -r1.51 src/sys/dev/wscons/wsdisplay_vcons.c

cvs diff -r1.50 -r1.51 src/sys/dev/wscons/wsdisplay_vcons.c (expand / switch to context diff)
--- src/sys/dev/wscons/wsdisplay_vcons.c 2021/01/26 16:24:17 1.50
+++ src/sys/dev/wscons/wsdisplay_vcons.c 2021/01/28 17:40:00 1.51
@@ -1,4 +1,4 @@
-/*	$NetBSD: wsdisplay_vcons.c,v 1.50 2021/01/26 16:24:17 macallan Exp $ */
+/*	$NetBSD: wsdisplay_vcons.c,v 1.51 2021/01/28 17:40:00 macallan Exp $ */
 
 /*-
  * Copyright (c) 2005, 2006 Michael Lorenz
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wsdisplay_vcons.c,v 1.50 2021/01/26 16:24:17 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wsdisplay_vcons.c,v 1.51 2021/01/28 17:40:00 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1334,7 +1334,7 @@
 #endif
 	ofs = offset + ri->ri_crow * ri->ri_cols + ri->ri_ccol;
 	if ((ri->ri_flg & RI_CURSOR) && 
-	   ((scr->scr_flags & VCONS_DONT_READ) != VCONS_DONT_READ)) {
+	   (((scr->scr_flags & VCONS_DONT_READ) != VCONS_DONT_READ) || on)) {
 		scr->putchar(cookie, ri->ri_crow, ri->ri_ccol,
 		    scr->scr_chars[ofs], scr->scr_attrs[ofs]);
 		ri->ri_flg &= ~RI_CURSOR;