Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/rasops Fix black color-attribution for depths 2 and 4.



details:   https://anonhg.NetBSD.org/src/rev/d79df87dcdd9
branches:  trunk
changeset: 458700:d79df87dcdd9
user:      rin <rin%NetBSD.org@localhost>
date:      Wed Aug 07 10:55:51 2019 +0000

description:
Fix black color-attribution for depths 2 and 4.

diffstat:

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

diffs (27 lines):

diff -r 24795376010b -r d79df87dcdd9 sys/dev/rasops/rasops.c
--- a/sys/dev/rasops/rasops.c   Wed Aug 07 10:53:41 2019 +0000
+++ b/sys/dev/rasops/rasops.c   Wed Aug 07 10:55:51 2019 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: rasops.c,v 1.110 2019/08/07 10:53:41 rin Exp $        */
+/*      $NetBSD: rasops.c,v 1.111 2019/08/07 10:55:51 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.110 2019/08/07 10:53:41 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rasops.c,v 1.111 2019/08/07 10:55:51 rin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_rasops.h"
@@ -673,7 +673,7 @@
        if ((flg & (WSATTR_BLINK | WSATTR_HILIT | WSATTR_WSCOLORS)) != 0)
                return EINVAL;
 
-       fg = 1;
+       fg = 0xff;
        bg = 0;
 
        if ((flg & WSATTR_REVERSE) != 0) {



Home | Main Index | Thread Index | Old Index