From 20e95d917417e7b86eb602362e4c6d3bb17a0dcb Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Thu, 22 Jun 2023 07:48:00 +0200 Subject: implement new bold drawing method --- swt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'swt.c') diff --git a/swt.c b/swt.c index 39f50c9..e4aacfd 100644 --- a/swt.c +++ b/swt.c @@ -224,7 +224,7 @@ get_color(uint32_t i, ushort mode) return i; } - if ((mode & ATTR_BOLD)) { + if ((mode & ATTR_BOLD) && i < 8) { if (!BETWEEN(i + 8, 0, sizeof(colors) / sizeof(uint32_t))) { return colors[i]; } -- cgit v1.2.3-70-g09d2