summaryrefslogtreecommitdiff
path: root/sys/arch/amiga/dev
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2000-12-15 17:41:46 +0000
committerMarc Espie <espie@cvs.openbsd.org>2000-12-15 17:41:46 +0000
commitd8f4a0f544a611aac725a3a27f69bbd7058369a4 (patch)
tree21671721c22261e6ccef5b65cc93278197e59856 /sys/arch/amiga/dev
parentff201a9607d44edb8ef7548f2a0ebbebbc3dda40 (diff)
ITE_INGRF checks needed, from NetBSD.
Reported by Lars Hecking.
Diffstat (limited to 'sys/arch/amiga/dev')
-rw-r--r--sys/arch/amiga/dev/ite_cl.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/sys/arch/amiga/dev/ite_cl.c b/sys/arch/amiga/dev/ite_cl.c
index 67588ee2135..84ad8d6e369 100644
--- a/sys/arch/amiga/dev/ite_cl.c
+++ b/sys/arch/amiga/dev/ite_cl.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: ite_cl.c,v 1.3 2000/04/28 15:27:07 espie Exp $ */
-/* $NetBSD: ite_cl.c,v 1.2 1996/04/21 21:11:57 veego Exp $ */
+/* $OpenBSD: ite_cl.c,v 1.4 2000/12/15 17:41:45 espie Exp $ */
+/* $NetBSD: ite_cl.c,v 1.3.2.1 1999/06/28 23:22:17 perry Exp $ */
/*
* Copyright (c) 1995 Ezra Story
@@ -161,6 +161,9 @@ cl_putc(ip, c, dy, dx, mode)
unsigned char attr;
unsigned char *cp;
+ if (ip->flags & ITE_INGRF)
+ return;
+
#if 0
attr =(unsigned char) ((mode & ATTR_INV) ? (0x70) : (0x07));
if (mode & ATTR_UL) attr = 0x01; /* ???????? */
@@ -210,6 +213,9 @@ cl_clear(ip, sy, sx, h, w)
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;
@@ -231,6 +237,9 @@ cl_scroll(ip, sy, sx, count, dir)
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);