Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amiga/dev Don't even try to output to, scroll or cl...



details:   https://anonhg.NetBSD.org/src/rev/4619e6d22c54
branches:  trunk
changeset: 474077:4619e6d22c54
user:      is <is%NetBSD.org@localhost>
date:      Sun Jun 27 21:17:17 1999 +0000

description:
Don't even try to output to, scroll or clear the device if we are in graphics
mode. On this chip, we need to access some registers to set the text plane,
which messes up the graphics setup.
This should fix the grf3 problems reported by several people.
Michael Hitch and Joerg Lehners analyzed the problem and provided the fix.

diffstat:

 sys/arch/amiga/dev/ite_cl.c |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (39 lines):

diff -r a8a3f55687be -r 4619e6d22c54 sys/arch/amiga/dev/ite_cl.c
--- a/sys/arch/amiga/dev/ite_cl.c       Sun Jun 27 20:06:48 1999 +0000
+++ b/sys/arch/amiga/dev/ite_cl.c       Sun Jun 27 21:17:17 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ite_cl.c,v 1.3 1999/03/25 23:20:00 is Exp $    */
+/*     $NetBSD: ite_cl.c,v 1.4 1999/06/27 21:17:17 is Exp $    */
 
 /*
  * Copyright (c) 1995 Ezra Story
@@ -161,6 +161,9 @@
        unsigned char attr;
        unsigned char *cp;
 
+       if (ip->flags & ITE_INGRF)
+               return;
+
        attr =(unsigned char) ((mode & ATTR_INV) ? (0x70) : (0x07));
        if (mode & ATTR_UL)     attr  = 0x01;   /* ???????? */
        if (mode & ATTR_BOLD)   attr |= 0x08;
@@ -189,6 +192,9 @@
        volatile unsigned char *ba = ip->grf->g_regkva;
        int len;
 
+       if (ip->flags & ITE_INGRF)
+               return;
+
        dst = ip->grf->g_fbkva + (sy * ip->cols) + sx;
        src = dst + (ip->rows*ip->cols); 
        len = w*h;
@@ -210,6 +216,9 @@
        unsigned char *fb;
        volatile unsigned char *ba = ip->grf->g_regkva;
 
+       if (ip->flags & ITE_INGRF)
+               return;
+
        fb = ip->grf->g_fbkva + sy * ip->cols;
        SetTextPlane(ba, 0x00);
 



Home | Main Index | Thread Index | Old Index