kolipe.c at exoticsilicon dot com.
ok miod
-/* $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 $ */
/*-
#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;
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);
}