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 Actually, the last change solved a diffe...
details: https://anonhg.NetBSD.org/src/rev/5afae1462bfa
branches: trunk
changeset: 472106:5afae1462bfa
user: scottr <scottr%NetBSD.org@localhost>
date: Wed Apr 21 06:00:07 1999 +0000
description:
Actually, the last change solved a different but related problem than
the one mentioned in PR 7376. By clearing the display in iteon()
instead, we can kill both birds with the same stone.
diffstat:
sys/arch/mac68k/dev/ite.c | 27 +++++++++++++--------------
1 files changed, 13 insertions(+), 14 deletions(-)
diffs (64 lines):
diff -r 4339aaa09ede -r 5afae1462bfa sys/arch/mac68k/dev/ite.c
--- a/sys/arch/mac68k/dev/ite.c Wed Apr 21 05:18:17 1999 +0000
+++ b/sys/arch/mac68k/dev/ite.c Wed Apr 21 06:00:07 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ite.c,v 1.49 1999/04/21 05:18:17 scottr Exp $ */
+/* $NetBSD: ite.c,v 1.50 1999/04/21 06:00:07 scottr Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -1252,9 +1252,6 @@
void
itereset()
{
- u_char *p;
- int i;
-
width = videosize & 0xffff;
height = (videosize >> 16) & 0xffff;
scrrows = height / CHARHEIGHT;
@@ -1293,13 +1290,6 @@
screenrowbytes = width*4;
break;
}
-
- /* Clear the buffer */
- p = (u_char *)videoaddr;
- for (i = height; i > 0; i--) {
- bzero(p, screenrowbytes);
- p += videorowbytes;
- }
vt100_reset();
}
@@ -1312,18 +1302,27 @@
ite_initted = 1;
itereset();
- drawcursor();
- return 0;
+ return iteon(cp->cn_dev, 0);
}
int
iteon(dev_t dev, int flags)
{
+ u_char *p;
+ int i;
+
if (!ite_initted)
return (-1);
erasecursor();
- clear_screen(2);
+
+ /* Clear the buffer */
+ p = (u_char *)videoaddr;
+ for (i = height; i > 0; i--) {
+ bzero(p, screenrowbytes);
+ p += videorowbytes;
+ }
+
drawcursor();
return 0;
}
Home |
Main Index |
Thread Index |
Old Index