From 2fe11f2546b08ab6257bdb594606600087c270e6 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Sun, 30 Apr 2023 10:42:05 +0200 Subject: fix bold is bright --- swt.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'swt.c') diff --git a/swt.c b/swt.c index 6a9b5b3..82376c6 100644 --- a/swt.c +++ b/swt.c @@ -224,11 +224,11 @@ get_color(uint32_t i, ushort mode) return i; } - if ((mode & ATTR_BOLD) && i >= 0 && i < 8) { - if (!BETWEEN(i + 8, 0, sizeof(colors) / sizeof(uint32_t))) { - return i; + if ((mode & ATTR_BOLD)) { + if (!BETWEEN(i - 8, 0, sizeof(colors) / sizeof(uint32_t))) { + return colors[i]; } - return colors[i + 8]; + return colors[i - 8]; } return colors[i]; -- cgit v1.2.3-70-g09d2