Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/wsfb if the cursor row passed in a device property d...
details: https://anonhg.NetBSD.org/src/rev/e93984f651aa
branches: trunk
changeset: 772302:e93984f651aa
user: macallan <macallan%NetBSD.org@localhost>
date: Wed Dec 28 18:37:58 2011 +0000
description:
if the cursor row passed in a device property doesn't fit on the screen just
ignore it and clear the screen
diffstat:
sys/dev/wsfb/genfb.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 8afbf19a51e1 -r e93984f651aa sys/dev/wsfb/genfb.c
--- a/sys/dev/wsfb/genfb.c Wed Dec 28 18:29:48 2011 +0000
+++ b/sys/dev/wsfb/genfb.c Wed Dec 28 18:37:58 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: genfb.c,v 1.43 2011/12/22 04:53:43 macallan Exp $ */
+/* $NetBSD: genfb.c,v 1.44 2011/12/28 18:37:58 macallan Exp $ */
/*-
* Copyright (c) 2007 Michael Lorenz
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfb.c,v 1.43 2011/12/22 04:53:43 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfb.c,v 1.44 2011/12/28 18:37:58 macallan Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -267,6 +267,11 @@
sc->sc_defaultscreen_descr.nrows = ri->ri_rows;
sc->sc_defaultscreen_descr.ncols = ri->ri_cols;
+ if (crow >= ri->ri_rows) {
+ crow = 0;
+ sc->sc_want_clear = 1;
+ }
+
if (console)
wsdisplay_cnattach(&sc->sc_defaultscreen_descr, ri, 0, crow,
defattr);
Home |
Main Index |
Thread Index |
Old Index