Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mac68k/dev When attaching the ite console, clear th...
details: https://anonhg.NetBSD.org/src/rev/4339aaa09ede
branches: trunk
changeset: 472105:4339aaa09ede
user: scottr <scottr%NetBSD.org@localhost>
date: Wed Apr 21 05:18:17 1999 +0000
description:
When attaching the ite console, clear the entire display rather than assuming
that the emulator will do it for us. (The emulator will only clear
full character-sized rows.) Incidentally fixes PR 7376.
diffstat:
sys/arch/mac68k/dev/ite.c | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diffs (43 lines):
diff -r b18f23404502 -r 4339aaa09ede sys/arch/mac68k/dev/ite.c
--- a/sys/arch/mac68k/dev/ite.c Wed Apr 21 02:37:07 1999 +0000
+++ b/sys/arch/mac68k/dev/ite.c Wed Apr 21 05:18:17 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ite.c,v 1.48 1999/03/27 05:53:05 briggs Exp $ */
+/* $NetBSD: ite.c,v 1.49 1999/04/21 05:18:17 scottr Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -1252,6 +1252,9 @@
void
itereset()
{
+ u_char *p;
+ int i;
+
width = videosize & 0xffff;
height = (videosize >> 16) & 0xffff;
scrrows = height / CHARHEIGHT;
@@ -1290,6 +1293,13 @@
screenrowbytes = width*4;
break;
}
+
+ /* Clear the buffer */
+ p = (u_char *)videoaddr;
+ for (i = height; i > 0; i--) {
+ bzero(p, screenrowbytes);
+ p += videorowbytes;
+ }
vt100_reset();
}
@@ -1302,7 +1312,8 @@
ite_initted = 1;
itereset();
- return iteon(cp->cn_dev, 0);
+ drawcursor();
+ return 0;
}
int
Home |
Main Index |
Thread Index |
Old Index