summaryrefslogtreecommitdiff
path: root/sys/dev/rasops
diff options
context:
space:
mode:
authorrin <rin@NetBSD.org>2019-07-29 01:04:20 +0000
committerrin <rin@NetBSD.org>2019-07-29 01:04:20 +0000
commitec3cd4e5b3ea6c458612e22c1f5a76ec405a6e50 (patch)
tree05cc2c38469991377c0c4d609af5917f5fb8faf0 /sys/dev/rasops
parent49e1e8d6d7782cc6448a2a1f2f610ffa2b48af6a (diff)
Fix missing underlines on mono screen.
Style.
Diffstat (limited to 'sys/dev/rasops')
-rw-r--r--sys/dev/rasops/rasops.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/rasops/rasops.c b/sys/dev/rasops/rasops.c
index be810661ed4..d4aa3e6c9f1 100644
--- a/sys/dev/rasops/rasops.c
+++ b/sys/dev/rasops/rasops.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rasops.c,v 1.94 2019/07/28 12:06:10 rin Exp $ */
+/* $NetBSD: rasops.c,v 1.95 2019/07/29 01:04:20 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.94 2019/07/28 12:06:10 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rasops.c,v 1.95 2019/07/29 01:04:20 rin Exp $");
#include "opt_rasops.h"
#include "rasops_glue.h"
@@ -511,7 +511,7 @@ rasops_reconfig(struct rasops_info *ri, int wantrows, int wantcols)
rasops8_init(ri);
break;
#endif
-#if NRASOPS15 > 0 || NRASOPS16 > 0
+#if (NRASOPS15 + NRASOPS16) > 0
case 15:
case 16:
rasops15_init(ri);
@@ -659,7 +659,7 @@ rasops_allocattr_mono(void *cookie, int fg0, int bg0, int flg, long *attr)
bg = swap;
}
- *attr = (bg << 16) | (fg << 24) | ((flg & WSATTR_UNDERLINE) ? 7 : 6);
+ *attr = (bg << 16) | (fg << 24) | flg;
return 0;
}