qtrans_check: set fg transparent when fully transparent #1065

This commit is contained in:
nick black 2020-10-18 17:54:23 -04:00
parent 0d7fe5822d
commit 800f28a4f5
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -370,7 +370,9 @@ qtrans_check(cell* c, bool bgr, bool blendcolors,
} }
assert(egc); assert(egc);
cell_set_bg_alpha(c, CELL_ALPHA_TRANSPARENT); 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); cell_set_fg_alpha(c, CELL_ALPHA_BLEND);
} }
return egc; return egc;