mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-20 03:25:47 +00:00
brailleblitter: honor transparency #649
This commit is contained in:
parent
28431914a8
commit
c8caa23090
@ -403,17 +403,15 @@ braille_blit(ncplane* nc, int placey, int placex, int linesize,
|
|||||||
&& ffmpeg_trans_p(bgr, rgbbase_l2[3]) && ffmpeg_trans_p(bgr, rgbbase_r2[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])){
|
&& 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);
|
||||||
egc = " ";
|
|
||||||
// FIXME else look for pairs of transparency!
|
// FIXME else look for pairs of transparency!
|
||||||
}else{
|
}else{
|
||||||
// FIXME interpolate into 1
|
// FIXME interpolate into 1
|
||||||
cell_set_fg_rgb(c, rgbbase_l0[rpos], rgbbase_l0[1], rgbbase_l0[bpos]);
|
cell_set_fg_rgb(c, rgbbase_l0[rpos], rgbbase_l0[1], rgbbase_l0[bpos]);
|
||||||
egc = "⡜";
|
egc = "⡜";
|
||||||
}
|
|
||||||
assert(egc);
|
|
||||||
if(cell_load(nc, c, egc) <= 0){
|
if(cell_load(nc, c, egc) <= 0){
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
++total;
|
++total;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user