Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/rasops Set 4-bpp devcmap in a similar manner to non-...



details:   https://anonhg.NetBSD.org/src/rev/c5a7d8ba191f
branches:  trunk
changeset: 844263:c5a7d8ba191f
user:      rin <rin%NetBSD.org@localhost>
date:      Sat Aug 10 01:20:47 2019 +0000

description:
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:

 sys/dev/rasops/rasops.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (41 lines):

diff -r ce1f2e3c14aa -r c5a7d8ba191f sys/dev/rasops/rasops.c
--- a/sys/dev/rasops/rasops.c   Sat Aug 10 01:06:45 2019 +0000
+++ b/sys/dev/rasops/rasops.c   Sat Aug 10 01:20:47 2019 +0000
@@ -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 @@
                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) {



Home | Main Index | Thread Index | Old Index