summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-01-23 19:05:24 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-01-23 19:05:24 +0000
commitecd20361c501263355341f9db03abf6e12c56ed3 (patch)
tree1c17618e2ad52282c103d55c9eefeeadd8db59e9 /sys
parent457fd1a167983a6521999630c739abdfa2b32158 (diff)
Be sure to clear color capabilities from rasops at 8bpp if we do not have
a setcolor routine.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/mac68k/dev/macfb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/mac68k/dev/macfb.c b/sys/arch/mac68k/dev/macfb.c
index 91a68f1ce3b..6195ffb422c 100644
--- a/sys/arch/mac68k/dev/macfb.c
+++ b/sys/arch/mac68k/dev/macfb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: macfb.c,v 1.9 2006/01/22 19:40:54 miod Exp $ */
+/* $OpenBSD: macfb.c,v 1.10 2006/01/23 19:05:23 miod Exp $ */
/* $NetBSD: macfb.c,v 1.11 2005/01/15 16:00:59 chs Exp $ */
/*
* Copyright (c) 1998 Matt DeBergalis
@@ -184,6 +184,7 @@ macfb_color_setup(struct macfb_devconfig *dc)
* routine to compensate for inverted black and white colors.
*/
ri->ri_ops.alloc_attr = macfb_alloc_mattr;
+ ri->ri_caps &= ~(WSSCREEN_WSCOLORS | WSSCREEN_HILIT);
if (ri->ri_depth == 8)
ri->ri_devcmap[15] = 0xffffffff;
return (0xff); /* fill in black inherited from MacOS */