diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-04-30 10:42:05 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-04-30 10:42:05 +0200 |
| commit | 2fe11f2546b08ab6257bdb594606600087c270e6 (patch) | |
| tree | e31ba1b39464b026b3db9b6da5c5e882012e58ec /swt.c | |
| parent | a21031d5d8dcdd1b95c48eeeb1a92c28abf85d6f (diff) | |
fix bold is bright
Diffstat (limited to 'swt.c')
| -rw-r--r-- | swt.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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]; |