kitty: rebuild auxvector when decoding a new frame #1605

pull/1683/head
nick black 3 years ago
parent 580fe2d660
commit 21c0d0a215
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -467,6 +467,11 @@ write_kitty_data(FILE* fp, int linesize, int leny, int lenx,
int tyx = xcell + ycell * cols;
//fprintf(stderr, "Tyx: %d y: %d (%d) * %d x: %d (%d) state %d\n", tyx, y, y / cdimy, cols, x, x / cdimx, tam[tyx].state);
if(tam[tyx].state == SPRIXCELL_ANNIHILATED || tam[tyx].state == SPRIXCELL_ANNIHILATED_TRANS){
// this pixel is part of a cell which is currently wiped (alpha-nulled
// out, to present a glyph "atop" it). we will continue to mark it
// transparent, but we need to update the auxiliary vector.
const int vyx = (y % cdimy) * cdimx + (x % cdimx);
tam[tyx].auxvector[vyx] = ncpixel_a(source[e]);
wipe[e] = 1;
}else{
wipe[e] = 0;

Loading…
Cancel
Save