Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/rasops Underline when the attribute say underline, n...
details: https://anonhg.NetBSD.org/src/rev/764bd2d0a14d
branches: trunk
changeset: 839653:764bd2d0a14d
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Fri Mar 01 23:17:05 2019 +0000
description:
Underline when the attribute say underline, not when it says to reverse.
diffstat:
sys/dev/rasops/rasops32.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 8bb63eda2e8b -r 764bd2d0a14d sys/dev/rasops/rasops32.c
--- a/sys/dev/rasops/rasops32.c Fri Mar 01 23:14:13 2019 +0000
+++ b/sys/dev/rasops/rasops32.c Fri Mar 01 23:17:05 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rasops32.c,v 1.30 2019/03/01 23:14:13 jakllsch Exp $ */
+/* $NetBSD: rasops32.c,v 1.31 2019/03/01 23:17:05 jakllsch Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rasops32.c,v 1.30 2019/03/01 23:14:13 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rasops32.c,v 1.31 2019/03/01 23:17:05 jakllsch Exp $");
#include "opt_rasops.h"
@@ -146,7 +146,7 @@
}
/* Do underline */
- if ((attr & 1) != 0) {
+ if ((attr & WSATTR_UNDERLINE) != 0) {
DELTA(rp, -(ri->ri_stride << 1), int32_t *);
if (ri->ri_hwbits)
DELTA(hrp, -(ri->ri_stride << 1), int32_t *);
@@ -235,7 +235,7 @@
}
/* Do underline */
- if ((attr & 1) != 0) {
+ if ((attr & WSATTR_UNDERLINE) != 0) {
rp = (uint32_t *)rrp;
height = font->fontheight;
DELTA(rp, (ri->ri_stride * (height - 2)), int32_t *);
Home |
Main Index |
Thread Index |
Old Index