Module Name: src Committed By: mlelstv Date: Sat Jul 16 10:57:59 UTC 2022
Modified Files: src/sys/dev/wscons: wsdisplay_vcons.c Log Message: modify screen before updating cache. To generate a diff of this commit: cvs rdiff -u -r1.53 -r1.54 src/sys/dev/wscons/wsdisplay_vcons.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/wscons/wsdisplay_vcons.c diff -u src/sys/dev/wscons/wsdisplay_vcons.c:1.53 src/sys/dev/wscons/wsdisplay_vcons.c:1.54 --- src/sys/dev/wscons/wsdisplay_vcons.c:1.53 Sun May 16 08:46:38 2021 +++ src/sys/dev/wscons/wsdisplay_vcons.c Sat Jul 16 10:57:59 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: wsdisplay_vcons.c,v 1.53 2021/05/16 08:46:38 mlelstv Exp $ */ +/* $NetBSD: wsdisplay_vcons.c,v 1.54 2022/07/16 10:57:59 mlelstv Exp $ */ /*- * Copyright (c) 2005, 2006 Michael Lorenz @@ -27,7 +27,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: wsdisplay_vcons.c,v 1.53 2021/05/16 08:46:38 mlelstv Exp $"); +__KERNEL_RCSID(0, "$NetBSD: wsdisplay_vcons.c,v 1.54 2022/07/16 10:57:59 mlelstv Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -1003,11 +1003,11 @@ vcons_erasecols_cached(void *cookie, int struct vcons_data *vd = scr->scr_vd; int i, pos = row * ri->ri_cols + startcol; + vd->erasecols(cookie, row, startcol, ncols, fillattr); for (i = pos; i < ncols; i++) { - vd->chars[i] = 0x20; - vd->attrs[i] = fillattr; + vd->chars[i] = scr->scr_chars[i]; + vd->attrs[i] = scr->scr_attrs[i]; } - vd->erasecols(cookie, row, startcol, ncols, fillattr); } #endif