Skip to content

Commit

Permalink
ncvisual_stream: erase before each draw for partial transparencies #1093
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Nov 1, 2020
1 parent 79e1a55 commit 20ff1fe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/ffmpeg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,9 @@ int ncvisual_stream(notcurses* nc, ncvisual* ncv, float timescale,
if(frame == 1 && ts){
usets = true;
}
if(activevopts.n){
ncplane_erase(activevopts.n); // new frame could be partially transparent
}
if((newn = ncvisual_render(nc, ncv, &activevopts)) == NULL){
if(activevopts.n != vopts->n){
ncplane_destroy(activevopts.n);
Expand Down

0 comments on commit 20ff1fe

Please sign in to comment.