mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-20 03:25:47 +00:00
qtrans_check: set fg transparent when fully transparent #1065
This commit is contained in:
parent
0d7fe5822d
commit
800f28a4f5
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user