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 color range overflow; we cannot make brig...



details:   https://anonhg.NetBSD.org/src/rev/789bbdee1a8b
branches:  trunk
changeset: 458767:789bbdee1a8b
user:      rin <rin%NetBSD.org@localhost>
date:      Fri Aug 09 11:42:03 2019 +0000

description:
Fix color range overflow; we cannot make bright colors more brighter.

diffstat:

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

diffs (27 lines):

diff -r 27fe7e0d03a4 -r 789bbdee1a8b sys/dev/rasops/rasops.c
--- a/sys/dev/rasops/rasops.c   Fri Aug 09 11:08:20 2019 +0000
+++ b/sys/dev/rasops/rasops.c   Fri Aug 09 11:42:03 2019 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: rasops.c,v 1.118 2019/08/09 11:08:20 rin Exp $        */
+/*      $NetBSD: rasops.c,v 1.119 2019/08/09 11:42:03 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.118 2019/08/09 11:08:20 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rasops.c,v 1.119 2019/08/09 11:42:03 rin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_rasops.h"
@@ -646,7 +646,7 @@
 #endif
        }
 
-       if ((flg & WSATTR_HILIT) != 0)
+       if ((flg & WSATTR_HILIT) != 0 && fg < 8)
                fg += 8;
 
        if ((flg & WSATTR_REVERSE) != 0) {



Home | Main Index | Thread Index | Old Index