mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-10-31 15:20:13 +00:00
quadblitter: write nul, not space for transparent #1017
This commit is contained in:
parent
77a0dbbe94
commit
a6bfd3f88e
@ -294,9 +294,9 @@ qtrans_check(cell* c, bool bgr, bool blendcolors,
|
||||
if(ffmpeg_trans_p(bgr, rgbbase_bl[3])){
|
||||
// top and left are transparent
|
||||
if(ffmpeg_trans_p(bgr, rgbbase_br[3])){
|
||||
// entirety is transparent, load with space
|
||||
// entirety is transparent, load with nul (but not NULL)
|
||||
cell_set_fg_default(c);
|
||||
egc = " ";
|
||||
egc = "";
|
||||
}else{
|
||||
cell_set_fg_rgb(c, rgbbase_br[rpos], rgbbase_br[1], rgbbase_br[bpos]);
|
||||
egc = "▗";
|
||||
@ -424,7 +424,7 @@ quadrant_blit(ncplane* nc, int placey, int placex, int linesize,
|
||||
cell_set_fg_alpha(c, CELL_ALPHA_BLEND);
|
||||
}
|
||||
}
|
||||
if(cell_load(nc, c, egc) <= 0){
|
||||
if(*egc && cell_load(nc, c, egc) <= 0){
|
||||
return -1;
|
||||
}
|
||||
++total;
|
||||
|
Loading…
Reference in New Issue
Block a user