diff options
author | Thomas Adam <thomas@xteddy.org> | 2020-12-03 08:01:22 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2020-12-03 08:01:22 +0000 |
commit | e288ea153ceffe42d88975fc23196c5dc3aeae5d (patch) | |
tree | ed5d52c1ce96d8c2b029dc21708d6bc6935970c0 /tty.c | |
parent | 4724702d4eef9e9d7c1bfa39e85b8aeed37a0d12 (diff) | |
parent | fd451aa7962f399250fd166f207451fcf4b9cb94 (diff) | |
download | rtmux-e288ea153ceffe42d88975fc23196c5dc3aeae5d.tar.gz rtmux-e288ea153ceffe42d88975fc23196c5dc3aeae5d.tar.bz2 rtmux-e288ea153ceffe42d88975fc23196c5dc3aeae5d.zip |
Merge branch 'obsd-master' into master
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2447,7 +2447,7 @@ tty_check_fg(struct tty *tty, int *palette, struct grid_cell *gc) /* Is this a 256-colour colour? */ if (gc->fg & COLOUR_FLAG_256) { /* And not a 256 colour mode? */ - if (colours != 256) { + if (colours < 256) { gc->fg = colour_256to16(gc->fg); if (gc->fg & 8) { gc->fg &= 7; @@ -2500,7 +2500,7 @@ tty_check_bg(struct tty *tty, int *palette, struct grid_cell *gc) * palette. Bold background doesn't exist portably, so just * discard the bold bit if set. */ - if (colours != 256) { + if (colours < 256) { gc->bg = colour_256to16(gc->bg); if (gc->bg & 8) { gc->bg &= 7; |