diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-06-30 21:38:20 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-06-30 21:38:20 +0000 |
commit | b06dcbe12fcf1901e5515acc951a8c18ab23e8c6 (patch) | |
tree | b2474be510eb7efb17db69ee2c8f676d381958c1 /sys/dev/sbus | |
parent | 4c0ac263ded8f53c10fafb84a0cf047c25b626d4 (diff) |
For 32bit sun frame buffers, tweak ri_devcmap to get the BoW palette instead
of needing different WSCOL_{BLACK,WHITE} values than 8bit frame buffers.
This allows us to not special case the alloc_attr() invocations depending
on the color depth, and to make WSCOL_{BLACK,WHITE} constants again in the
wsemul_sun land.
Diffstat (limited to 'sys/dev/sbus')
-rw-r--r-- | sys/dev/sbus/agten.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/dev/sbus/agten.c b/sys/dev/sbus/agten.c index 2db079e7a6b..94a821f191c 100644 --- a/sys/dev/sbus/agten.c +++ b/sys/dev/sbus/agten.c @@ -1,4 +1,4 @@ -/* $OpenBSD: agten.c,v 1.5 2006/06/02 20:00:56 miod Exp $ */ +/* $OpenBSD: agten.c,v 1.6 2006/06/30 21:38:19 miod Exp $ */ /* * Copyright (c) 2002, 2003, Miodrag Vallat. * All rights reserved. @@ -351,13 +351,8 @@ agten_alloc_screen(v, type, cookiep, curxp, curyp, attrp) *cookiep = &sc->sc_sunfb.sf_ro; *curyp = 0; *curxp = 0; - if (sc->sc_sunfb.sf_depth == 8) { - sc->sc_sunfb.sf_ro.ri_ops.alloc_attr(&sc->sc_sunfb.sf_ro, - WSCOL_BLACK, WSCOL_WHITE, WSATTR_WSCOLORS, attrp); - } else { - sc->sc_sunfb.sf_ro.ri_ops.alloc_attr(&sc->sc_sunfb.sf_ro, - 0, 0, 0, attrp); - } + sc->sc_sunfb.sf_ro.ri_ops.alloc_attr(&sc->sc_sunfb.sf_ro, + WSCOL_BLACK, WSCOL_WHITE, WSATTR_WSCOLORS, attrp); sc->sc_nscreens++; return (0); } |