Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/wscons fix logic botch from previous - if we're aske...
details: https://anonhg.NetBSD.org/src/rev/50f575dafc0e
branches: trunk
changeset: 980231:50f575dafc0e
user: macallan <macallan%NetBSD.org@localhost>
date: Thu Jan 28 17:40:00 2021 +0000
description:
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
diffstat:
sys/dev/wscons/wsdisplay_vcons.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r e87e2eceba89 -r 50f575dafc0e sys/dev/wscons/wsdisplay_vcons.c
--- a/sys/dev/wscons/wsdisplay_vcons.c Thu Jan 28 15:53:46 2021 +0000
+++ b/sys/dev/wscons/wsdisplay_vcons.c Thu Jan 28 17:40:00 2021 +0000
@@ -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;
Home |
Main Index |
Thread Index |
Old Index