Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/sys/arch/mac68k/dev pullup 1.48->1.49 (scottr): partial...



details:   https://anonhg.NetBSD.org/src/rev/ba406231a716
branches:  netbsd-1-4
changeset: 468403:ba406231a716
user:      perry <perry%NetBSD.org@localhost>
date:      Wed Apr 21 14:52:05 1999 +0000

description:
pullup 1.48->1.49 (scottr): partial fix for pr7376

diffstat:

 sys/arch/mac68k/dev/ite.c |  15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diffs (43 lines):

diff -r dacfd7645d34 -r ba406231a716 sys/arch/mac68k/dev/ite.c
--- a/sys/arch/mac68k/dev/ite.c Wed Apr 21 14:50:19 1999 +0000
+++ b/sys/arch/mac68k/dev/ite.c Wed Apr 21 14:52:05 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.48.2.1 1999/04/21 14:52:05 perry 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