diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-06-30 15:15:22 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-06-30 15:15:22 +0000 |
commit | 74629fd965d4d75bd77a487b171452fb272223b8 (patch) | |
tree | a6dd9cf55de6da6d605aa14b720d55fb606fdcba /sys/arch/hp300/dev | |
parent | 15e35923d4e4901054de8e982825410c047f9512 (diff) |
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.
Diffstat (limited to 'sys/arch/hp300/dev')
-rw-r--r-- | sys/arch/hp300/dev/diofb.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/sys/arch/hp300/dev/diofb.c b/sys/arch/hp300/dev/diofb.c index c3159e5b9b5..1464f677b6a 100644 --- a/sys/arch/hp300/dev/diofb.c +++ b/sys/arch/hp300/dev/diofb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diofb.c,v 1.10 2006/03/12 22:52:59 miod Exp $ */ +/* $OpenBSD: diofb.c,v 1.11 2006/06/30 15:15:20 miod Exp $ */ /* * Copyright (c) 2005, Miodrag Vallat @@ -287,11 +287,7 @@ diofb_cnattach(struct diofb *fb) struct rasops_info *ri; ri = &fb->ri; - if (ri->ri_caps & WSSCREEN_WSCOLORS) - 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(&fb->wsd, ri, 0, 0, defattr); } @@ -442,11 +438,7 @@ diofb_alloc_screen(void *v, const struct wsscreen_descr *type, *cookiep = ri; *curxp = *curyp = 0; - if (ri->ri_caps & WSSCREEN_WSCOLORS) - ri->ri_ops.alloc_attr(ri, WSCOL_WHITE, WSCOL_BLACK, - WSATTR_WSCOLORS, attrp); - else - ri->ri_ops.alloc_attr(ri, 0, 0, 0, attrp); + ri->ri_ops.alloc_attr(ri, 0, 0, 0, attrp); fb->nscreens++; return (0); |