From 800f28a4f55172c83e1c7e49e4ba871424d22196 Mon Sep 17 00:00:00 2001 From: nick black Date: Sun, 18 Oct 2020 17:54:23 -0400 Subject: [PATCH] qtrans_check: set fg transparent when fully transparent #1065 --- src/lib/blit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/blit.c b/src/lib/blit.c index f85980102..8e3927661 100644 --- a/src/lib/blit.c +++ b/src/lib/blit.c @@ -370,7 +370,9 @@ qtrans_check(cell* c, bool bgr, bool blendcolors, } assert(egc); cell_set_bg_alpha(c, CELL_ALPHA_TRANSPARENT); - if(blendcolors){ + if(*egc == '\0'){ + cell_set_fg_alpha(c, CELL_ALPHA_TRANSPARENT); + }else if(blendcolors){ cell_set_fg_alpha(c, CELL_ALPHA_BLEND); } return egc;