aboutsummaryrefslogtreecommitdiff
path: root/swt.c
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2023-04-30 12:50:52 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2023-04-30 12:50:52 +0200
commitaaf165bcbaf86948780c61cd9b877d6b0cf414f1 (patch)
tree16d5a0aec88cde5b3ef783c6cb8efc36c5f8bec0 /swt.c
parent2fe11f2546b08ab6257bdb594606600087c270e6 (diff)
only make color bright when code < 8
Diffstat (limited to 'swt.c')
-rw-r--r--swt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/swt.c b/swt.c
index 82376c6..39f50c9 100644
--- a/swt.c
+++ b/swt.c
@@ -225,10 +225,10 @@ get_color(uint32_t i, ushort mode)
}
if ((mode & ATTR_BOLD)) {
- if (!BETWEEN(i - 8, 0, sizeof(colors) / sizeof(uint32_t))) {
+ if (!BETWEEN(i + 8, 0, sizeof(colors) / sizeof(uint32_t))) {
return colors[i];
}
- return colors[i - 8];
+ return colors[i + 8];
}
return colors[i];