Skip to content

Commit

Permalink
qtrans_check: set fg transparent when fully transparent #1065
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Oct 18, 2020
1 parent 0d7fe58 commit 800f28a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/blit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 800f28a

Please sign in to comment.