From 74629fd965d4d75bd77a487b171452fb272223b8 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Fri, 30 Jun 2006 15:15:22 +0000 Subject: When allocating the default rasops attribute, it is not necessary to use non-zero parameters on a color display as long as we want white on black; this was inherited from sparc but this is not necessary on these platforms. --- sys/arch/mac68k/dev/macfb.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'sys/arch/mac68k/dev') diff --git a/sys/arch/mac68k/dev/macfb.c b/sys/arch/mac68k/dev/macfb.c index a72a2e3c1e2..9283f2a125c 100644 --- a/sys/arch/mac68k/dev/macfb.c +++ b/sys/arch/mac68k/dev/macfb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: macfb.c,v 1.16 2006/04/14 09:36:49 martin Exp $ */ +/* $OpenBSD: macfb.c,v 1.17 2006/06/30 15:15:21 miod Exp $ */ /* $NetBSD: macfb.c,v 1.11 2005/01/15 16:00:59 chs Exp $ */ /* * Copyright (c) 1998 Matt DeBergalis @@ -455,11 +455,7 @@ macfb_alloc_screen(void *v, const struct wsscreen_descr *type, void **cookiep, *cookiep = ri; *curxp = *curyp = 0; - if ((ri->ri_caps & WSSCREEN_WSCOLORS) && ri->ri_depth <= 8) - ri->ri_ops.alloc_attr(ri, WSCOL_WHITE, WSCOL_BLACK, - WSATTR_WSCOLORS, defattrp); - else - ri->ri_ops.alloc_attr(ri, 0, 0, 0, defattrp); + ri->ri_ops.alloc_attr(ri, 0, 0, 0, defattrp); sc->sc_dc->dc_nscreens++; return (0); @@ -569,12 +565,7 @@ macfb_cnattach() return (-1); ri = &dc->dc_ri; - if ((ri->ri_caps & WSSCREEN_WSCOLORS) && ri->ri_depth <= 8) - ri->ri_ops.alloc_attr(ri, WSCOL_WHITE, WSCOL_BLACK, - WSATTR_WSCOLORS, &defattr); - else - ri->ri_ops.alloc_attr(ri, 0, 0, 0, &defattr); - + ri->ri_ops.alloc_attr(ri, 0, 0, 0, &defattr); wsdisplay_cnattach(&dc->dc_wsd, ri, 0, 0, defattr); macfb_consaddr = mac68k_vidphys; -- cgit v1.2.3