summaryrefslogtreecommitdiff
path: root/sys/arch/pmax/dev/bt478.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-14 05:29:32 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-14 05:29:32 +0000
commit86b4fdd623d3c50d7bfd9427c2c9208454cd0da7 (patch)
tree5d95abcaf58d01703a30c7ab600537d3b8f67989 /sys/arch/pmax/dev/bt478.c
parente2cd6c399798843e13e76f49dc8ee048b51f99f1 (diff)
update from netbsd (verbatim)
Diffstat (limited to 'sys/arch/pmax/dev/bt478.c')
-rw-r--r--sys/arch/pmax/dev/bt478.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/sys/arch/pmax/dev/bt478.c b/sys/arch/pmax/dev/bt478.c
index 23f5e543163..e672cfd1c2c 100644
--- a/sys/arch/pmax/dev/bt478.c
+++ b/sys/arch/pmax/dev/bt478.c
@@ -1,4 +1,4 @@
-/* $NetBSD: bt478.c,v 1.1 1995/09/11 08:11:22 jonathan Exp $ */
+/* $NetBSD: bt478.c,v 1.2 1995/11/25 10:38:42 mellon Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -121,7 +121,6 @@ bt478init(fi)
* Initialize the color map and the screen.
*/
bt478InitColorMap(fi);
- bt478RestoreCursorColor (fi);
return (1);
}
@@ -211,14 +210,15 @@ bt478InitColorMap (fi)
if (fi -> fi_type.fb_depth == 1) {
vdac->mapWA = 0; MachEmptyWriteBuffer();
for (i = 0; i < 256; i++) {
- ((u_char *)(fi -> fi_cmap_bits)) [i * 3]
- = vdac->map = (i < 128) ? 0x00 : 0xff;
- MachEmptyWriteBuffer();
+ ((u_char *)(fi -> fi_cmap_bits)) [i * 3] = 0;
((u_char *)(fi -> fi_cmap_bits)) [i * 3 + 1]
- = vdac->map = (i < 128) ? 0x00 : 0xff;
+ = (i < 128) ? 0x00 : 0xff;
+ ((u_char *)(fi -> fi_cmap_bits)) [i * 3 + 2] = 0;
+ vdac->map = 0;
+ MachEmptyWriteBuffer();
+ vdac->map = (i < 128) ? 0x00 : 0xff;
MachEmptyWriteBuffer();
- ((u_char *)(fi -> fi_cmap_bits)) [i * 3 + 2]
- = vdac->map = (i < 128) ? 0x00 : 0xff;
+ vdac->map = 0;
MachEmptyWriteBuffer();
}
} else {
@@ -244,8 +244,6 @@ bt478InitColorMap (fi)
vdac->map = 0xff;
MachEmptyWriteBuffer();
}
-#if 0
-#endif
}
for (i = 0; i < 3; i++) {