braille_blit: closed-form transparency check

This commit is contained in:
nick black 2020-10-28 02:18:53 -04:00 committed by Nick Black
parent 782f6051c5
commit e1ed3e088f

View File

@ -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{