Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x68k/dev Restore scroll registers after X server ex...



details:   https://anonhg.NetBSD.org/src/rev/bc7aa9b31ac6
branches:  trunk
changeset: 474068:bc7aa9b31ac6
user:      minoura <minoura%NetBSD.org@localhost>
date:      Sun Jun 27 14:14:30 1999 +0000

description:
Restore scroll registers after X server exits.

diffstat:

 sys/arch/x68k/dev/ite.c    |  4 +++-
 sys/arch/x68k/dev/ite_tv.c |  8 +++++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diffs (40 lines):

diff -r 5e264daa16e4 -r bc7aa9b31ac6 sys/arch/x68k/dev/ite.c
--- a/sys/arch/x68k/dev/ite.c   Sun Jun 27 14:13:14 1999 +0000
+++ b/sys/arch/x68k/dev/ite.c   Sun Jun 27 14:14:30 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ite.c,v 1.19 1999/05/05 14:31:16 minoura Exp $ */
+/*     $NetBSD: ite.c,v 1.20 1999/06/27 14:14:30 minoura Exp $ */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -309,6 +309,8 @@
        if (ip->flags & ITE_INGRF)
                return(0);
        iteinit(dev);
+       if (flag & 2)
+               ite_reset(ip);
 #if NKBD > 0
        mfp_send_usart (0x49);  /* XXX */
 #endif
diff -r 5e264daa16e4 -r bc7aa9b31ac6 sys/arch/x68k/dev/ite_tv.c
--- a/sys/arch/x68k/dev/ite_tv.c        Sun Jun 27 14:13:14 1999 +0000
+++ b/sys/arch/x68k/dev/ite_tv.c        Sun Jun 27 14:14:30 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ite_tv.c,v 1.6 1999/03/16 16:30:19 minoura Exp $       */
+/*     $NetBSD: ite_tv.c,v 1.7 1999/06/27 14:14:30 minoura Exp $       */
 
 /*
  * Copyright (c) 1997 Masaru Oki.
@@ -656,6 +656,12 @@
        char *p;
        short fh;
 
+       /* XXX: reset scroll register on clearing whole screen */
+       if (y == 0 && x == 0 && height == ip->rows && width == ip->cols) {
+               CRTC.r10 = 0;
+               CRTC.r11 = tv_top * FONTHEIGHT;
+       }
+
        CRTC.r21 = 0x01f0;
        while (height--) {
                p = CHADDR(y++, x);



Home | Main Index | Thread Index | Old Index