Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/wscons modify screen before updating cache.
details: https://anonhg.NetBSD.org/src/rev/466dd717839c
branches: trunk
changeset: 368505:466dd717839c
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sat Jul 16 10:57:59 2022 +0000
description:
modify screen before updating cache.
diffstat:
sys/dev/wscons/wsdisplay_vcons.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (33 lines):
diff -r 4b50ef71e954 -r 466dd717839c sys/dev/wscons/wsdisplay_vcons.c
--- a/sys/dev/wscons/wsdisplay_vcons.c Sat Jul 16 10:36:19 2022 +0000
+++ b/sys/dev/wscons/wsdisplay_vcons.c Sat Jul 16 10:57:59 2022 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index