diff options
author | Thomas Adam <thomas@xteddy.org> | 2021-10-25 12:01:11 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2021-10-25 12:01:11 +0100 |
commit | 3934d9b24de376cf0b6868c56751b55bd2d60399 (patch) | |
tree | 2170d81ee872281d53659623a721618a6a6a744c /screen-write.c | |
parent | 619d934d7b64ec86dcc08f182c390273d1604e06 (diff) | |
parent | ef46eb91a5e0b6e2b023544f45dbc98c8fe1377f (diff) | |
download | rtmux-3934d9b24de376cf0b6868c56751b55bd2d60399.tar.gz rtmux-3934d9b24de376cf0b6868c56751b55bd2d60399.tar.bz2 rtmux-3934d9b24de376cf0b6868c56751b55bd2d60399.zip |
Merge branch 'obsd-master' into master
Diffstat (limited to 'screen-write.c')
-rw-r--r-- | screen-write.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/screen-write.c b/screen-write.c index e2904ef6..cead12d4 100644 --- a/screen-write.c +++ b/screen-write.c @@ -184,8 +184,10 @@ screen_write_initctx(struct screen_write_ctx *ctx, struct tty_ctx *ttyctx, if (ctx->init_ctx_cb != NULL) { ctx->init_ctx_cb(ctx, ttyctx); if (ttyctx->palette != NULL) { - ttyctx->defaults.fg = ttyctx->palette->fg; - ttyctx->defaults.bg = ttyctx->palette->bg; + if (ttyctx->defaults.fg == 8) + ttyctx->defaults.fg = ttyctx->palette->fg; + if (ttyctx->defaults.bg == 8) + ttyctx->defaults.bg = ttyctx->palette->bg; } } else { ttyctx->redraw_cb = screen_write_redraw_cb; |