Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbppc/explora/dev Fix color map.



details:   https://anonhg.NetBSD.org/src/rev/59e44aad18a4
branches:  trunk
changeset: 960012:59e44aad18a4
user:      rin <rin%NetBSD.org@localhost>
date:      Fri Mar 05 06:50:57 2021 +0000

description:
Fix color map.

Almost all colors except *green* were wrong for the apparent reason ;).

diffstat:

 sys/arch/evbppc/explora/dev/fb_elb.c |  20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diffs (47 lines):

diff -r be3c000d5c9f -r 59e44aad18a4 sys/arch/evbppc/explora/dev/fb_elb.c
--- a/sys/arch/evbppc/explora/dev/fb_elb.c      Fri Mar 05 06:48:20 2021 +0000
+++ b/sys/arch/evbppc/explora/dev/fb_elb.c      Fri Mar 05 06:50:57 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fb_elb.c,v 1.15 2021/03/05 06:48:20 rin Exp $  */
+/*     $NetBSD: fb_elb.c,v 1.16 2021/03/05 06:50:57 rin Exp $  */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fb_elb.c,v 1.15 2021/03/05 06:48:20 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fb_elb.c,v 1.16 2021/03/05 06:50:57 rin Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -389,20 +389,20 @@
 
 static u_int8_t default_cmap[] = {
        /* black */               0,   0,   0,
+       /* red */               192,   0,   0,
+       /* green */               0, 192,   0,
+       /* brown */             192, 192,   0,
        /* blue */                0,   0, 192,
-       /* green */               0, 192,   0,
+       /* magenta */           192,   0, 192,
        /* cyan */                0, 192, 192,
-       /* red */               192,   0,   0,
-       /* magenta */           192,   0, 192,
-       /* brown */             192, 192,   0,
        /* lightgrey */         212, 208, 200,
        /* darkgrey */          200, 192, 188,
+       /* lightred */          255,   0,   0,
+       /* lightgreen */          0, 255,   0,
+       /* yellow */            255, 255,   0,
        /* lightblue */           0,   0, 255,
-       /* lightgreen */          0, 255,   0,
+       /* lightmagenta */      255,   0, 255,
        /* lightcyan */           0, 255, 255,
-       /* lightred */          255,   0,   0,
-       /* lightmagenta */      255,   0, 255,
-       /* yellow */            255, 255,   0,
        /* white */             255, 255, 255,
 };
 



Home | Main Index | Thread Index | Old Index