aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
Diffstat (limited to 'render.c')
-rw-r--r--render.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/render.c b/render.c
index fdf7015c..0e403949 100644
--- a/render.c
+++ b/render.c
@@ -754,8 +754,15 @@ render_cell(struct terminal *term, pixman_image_t *pix,
}
case ALPHA_MODE_MATCHING: {
- if (cell->attrs.bg == term->colors.bg)
+ if (cell->attrs.bg_src == COLOR_DEFAULT ||
+ ((cell->attrs.bg_src == COLOR_BASE16 ||
+ cell->attrs.bg_src == COLOR_BASE256) &&
+ term->colors.table[cell->attrs.bg] == term->colors.bg) ||
+ (cell->attrs.bg_src == COLOR_RGB &&
+ cell->attrs.bg == term->colors.bg))
+ {
alpha = term->colors.alpha;
+ }
break;
}