Module Name: src Committed By: rin Date: Wed Jul 24 19:33:35 UTC 2019
Modified Files: src/sys/dev/rasops: rasops.c Log Message: Oops, revert unintentional changes. To generate a diff of this commit: cvs rdiff -u -r1.85 -r1.86 src/sys/dev/rasops/rasops.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/rasops/rasops.c diff -u src/sys/dev/rasops/rasops.c:1.85 src/sys/dev/rasops/rasops.c:1.86 --- src/sys/dev/rasops/rasops.c:1.85 Wed Jul 24 19:31:12 2019 +++ src/sys/dev/rasops/rasops.c Wed Jul 24 19:33:35 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: rasops.c,v 1.85 2019/07/24 19:31:12 rin Exp $ */ +/* $NetBSD: rasops.c,v 1.86 2019/07/24 19:33:35 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.85 2019/07/24 19:31:12 rin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rasops.c,v 1.86 2019/07/24 19:33:35 rin Exp $"); #include "opt_rasops.h" #include "rasops_glue.h" @@ -134,28 +134,6 @@ const uint8_t rasops_isgray[16] = { 0, 0, 0, 1 }; -#ifdef GENFB_MAC68K -static const uint8_t apple_devcmap[16] = { - 0xff, /* black 0x00, 0x00, 0x00 */ - 0x6b, /* red 0x99, 0x00, 0x00 */ - 0xc5, /* green 0x00, 0x99, 0x00 */ - 0x59, /* yellow 0x99, 0x99, 0x00 */ - 0xd4, /* blue 0x00, 0x00, 0x99 */ - 0x68, /* magenta 0x99, 0x00, 0x99 */ - 0xc2, /* cyan 0x00, 0x99, 0x99 */ - 0x2b, /* white 0xcc, 0xcc, 0xcc */ - - 0x56, /* black 0x99, 0x99, 0x99 */ - 0x23, /* red 0xff, 0x00, 0x00 */ - 0xb9, /* green 0x00, 0xff, 0x00 */ - 0x05, /* yellow 0xff, 0xff, 0x00 */ - 0xd2, /* blue 0x00, 0x00, 0xff */ - 0x1e, /* magenta 0xff, 0x00, 0xff */ - 0xb4, /* cyan 0x00, 0xff, 0xff */ - 0x00, /* white 0xff, 0xff, 0xff */ -}; -#endif - /* Generic functions */ static void rasops_copyrows(void *, int, int, int); static int rasops_mapchar(void *, int, u_int *); @@ -866,15 +844,9 @@ rasops_init_devcmap(struct rasops_info * case 8: if ((ri->ri_flg & RI_8BIT_IS_RGB) == 0) { - for (i = 0; i < 16; i++) { -#ifdef GENFB_MAC68K - c = apple_devcmap[i]; -#else - c = i; -#endif + for (i = 0; i < 16; i++) ri->ri_devcmap[i] = - c | (c<<8) | (c<<16) | (c<<24); - } + i | (i<<8) | (i<<16) | (i<<24); return; } }