mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-20 03:25:47 +00:00
braille_blit: closed-form transparency check
This commit is contained in:
parent
782f6051c5
commit
e1ed3e088f
@ -688,10 +688,7 @@ braille_blit(ncplane* nc, int placey, int placex, int linesize,
|
|||||||
// more complicated to do optimally than quadrants, for sure. ideally,
|
// more complicated to do optimally than quadrants, for sure. ideally,
|
||||||
// we only get one color in an area.
|
// we only get one color in an area.
|
||||||
cell_set_bg_alpha(c, CELL_ALPHA_TRANSPARENT);
|
cell_set_bg_alpha(c, CELL_ALPHA_TRANSPARENT);
|
||||||
if(ffmpeg_trans_p(bgr, rgbbase_l0[3]) && ffmpeg_trans_p(bgr, rgbbase_r0[3])
|
if(!egcidx){
|
||||||
&& ffmpeg_trans_p(bgr, rgbbase_l1[3]) && ffmpeg_trans_p(bgr, rgbbase_r1[3])
|
|
||||||
&& ffmpeg_trans_p(bgr, rgbbase_l2[3]) && ffmpeg_trans_p(bgr, rgbbase_r2[3])
|
|
||||||
&& ffmpeg_trans_p(bgr, rgbbase_l3[3]) && ffmpeg_trans_p(bgr, rgbbase_r3[3])){
|
|
||||||
cell_set_fg_alpha(c, CELL_ALPHA_TRANSPARENT);
|
cell_set_fg_alpha(c, CELL_ALPHA_TRANSPARENT);
|
||||||
// FIXME else look for pairs of transparency!
|
// FIXME else look for pairs of transparency!
|
||||||
}else{
|
}else{
|
||||||
|
Loading…
Reference in New Issue
Block a user