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.49->1.50 (scottr): rest of...



details:   https://anonhg.NetBSD.org/src/rev/96935d23ddbb
branches:  netbsd-1-4
changeset: 468408:96935d23ddbb
user:      perry <perry%NetBSD.org@localhost>
date:      Wed Apr 21 15:03:41 1999 +0000

description:
pullup 1.49->1.50 (scottr): rest of fix for pr7376

diffstat:

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

diffs (64 lines):

diff -r 69e894351576 -r 96935d23ddbb sys/arch/mac68k/dev/ite.c
--- a/sys/arch/mac68k/dev/ite.c Wed Apr 21 14:59:44 1999 +0000
+++ b/sys/arch/mac68k/dev/ite.c Wed Apr 21 15:03:41 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ite.c,v 1.48.2.1 1999/04/21 14:52:05 perry Exp $       */
+/*     $NetBSD: ite.c,v 1.48.2.2 1999/04/21 15:03:41 perry 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