diff options
| author | rin <rin@NetBSD.org> | 2019-08-10 01:20:47 +0000 |
|---|---|---|
| committer | rin <rin@NetBSD.org> | 2019-08-10 01:20:47 +0000 |
| commit | 5512a6740a241bf73ffd96ca8742cca41f630ab3 (patch) | |
| tree | 66e025e8b88ccb8aadc542c080962cb0f415a0d1 /sys/dev/rasops | |
| parent | 5263d01bf01f5f9d7ec258e54348b602d0683632 (diff) | |
Set 4-bpp devcmap in a similar manner to non-RGB case of 8-bpp.
No functional changes since this is not in use (4-bpp is monochrome).
Diffstat (limited to 'sys/dev/rasops')
| -rw-r--r-- | sys/dev/rasops/rasops.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/rasops/rasops.c b/sys/dev/rasops/rasops.c index 6949fc049da..70a7257b7eb 100644 --- a/sys/dev/rasops/rasops.c +++ b/sys/dev/rasops/rasops.c @@ -1,4 +1,4 @@ -/* $NetBSD: rasops.c,v 1.120 2019/08/09 12:05:51 rin Exp $ */ +/* $NetBSD: rasops.c,v 1.121 2019/08/10 01:20:47 rin Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: rasops.c,v 1.120 2019/08/09 12:05:51 rin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rasops.c,v 1.121 2019/08/10 01:20:47 rin Exp $"); #ifdef _KERNEL_OPT #include "opt_rasops.h" @@ -876,18 +876,18 @@ rasops_init_devcmap(struct rasops_info *ri) ri->ri_devcmap[15] = -1; return; -#ifdef RASOPS_APPLE_PALETTE case 4: for (i = 0; i < 16; i++) { +#ifdef RASOPS_APPLE_PALETTE c = apple4_devcmap[i]; +#else + c = i; +#endif ri->ri_devcmap[i] = (c << 0) | (c << 4) | (c << 8) | (c << 12) | (c << 16) | (c << 20) | (c << 24) | (c << 28); } return; -#else - /* XXXRO What should we do here? */ -#endif case 8: if ((ri->ri_flg & RI_8BIT_IS_RGB) == 0) { |
