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/e5ef6f85ba0b
branches: trunk
changeset: 1002659:e5ef6f85ba0b
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 224d9a7baa7c -r e5ef6f85ba0b 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