diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2023-01-11 12:47:05 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2023-01-11 12:47:05 +0000 |
commit | 3443aa0ba46a41d47901c4fe13246734b9d3a449 (patch) | |
tree | 5ac79e9f0efe70cfaf21b76f30c344640b3ef82a /sys | |
parent | 3fdf3f88ac5aea84988c4f9a337fde8adcdc5c94 (diff) |
Remove rasops_isgray, this is no longer used. From Crystal Kolipe
kolipe.c at exoticsilicon dot com.
ok miod
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/rasops/rasops.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/sys/dev/rasops/rasops.c b/sys/dev/rasops/rasops.c index 70fb41758c0..3de0d00df1a 100644 --- a/sys/dev/rasops/rasops.c +++ b/sys/dev/rasops/rasops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rasops.c,v 1.66 2020/07/23 09:17:03 tim Exp $ */ +/* $OpenBSD: rasops.c,v 1.67 2023/01/11 12:47:04 nicm Exp $ */ /* $NetBSD: rasops.c,v 1.35 2001/02/02 06:01:01 marcus Exp $ */ /*- @@ -122,14 +122,6 @@ const u_char rasops_cmap[256 * 3] = { #undef _C }; -/* True if color is gray */ -const u_char rasops_isgray[16] = { - 1, 0, 0, 0, - 0, 0, 0, 1, - 1, 0, 0, 0, - 0, 0, 0, 1 -}; - struct rasops_screen { LIST_ENTRY(rasops_screen) rs_next; struct rasops_info *rs_ri; @@ -570,12 +562,6 @@ rasops_pack_cattr(void *cookie, int fg, int bg, int flg, uint32_t *attr) flg = ((flg & WSATTR_UNDERLINE) ? 1 : 0); - if (rasops_isgray[fg]) - flg |= 2; - - if (rasops_isgray[bg]) - flg |= 4; - *attr = (bg << 16) | (fg << 24) | flg; return (0); } |