summaryrefslogtreecommitdiffstats
path: root/screen-write.c
diff options
context:
space:
mode:
Diffstat (limited to 'screen-write.c')
-rw-r--r--screen-write.c6
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;