kill tacachey/tacachex in ncplane #1572

pull/1589/head
nick black 3 years ago
parent cc657bbe35
commit ea809345e3
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -212,7 +212,6 @@ typedef struct ncplane {
sprixel* sprite; // pointer into the sprixel cache
sprixcell_e* tacache; // transparency-annihilation sprite matrix
int tacachey, tacachex;// tacache geometry FIXME get rid of this
void* userptr; // slot for the user to stick some opaque pointer
int (*resizecb)(struct ncplane*); // callback after parent is resized
@ -1431,8 +1430,6 @@ plane_blit_sixel(sprixel* spx, char* s, int bytes, int rows, int cols,
free(n->tacache);
}
n->tacache = tacache;
n->tacachey = rows;
n->tacachex = cols;
n->sprite = spx;
}
return 0;

@ -333,7 +333,7 @@ int kitty_blit(ncplane* n, int linesize, const void* data,
// if we have a sprixel attached to this plane, see if we can reuse it
// (we need the same dimensions) and thus immediately apply its T-A table.
if(n->tacache){
if(n->tacachey == rows && n->tacachex == cols){
if(n->leny == rows && n->lenx == cols){
tacache = n->tacache;
reuse = true;
}

@ -482,7 +482,7 @@ int sixel_blit(ncplane* n, int linesize, const void* data,
// (we need the same dimensions) and thus immediately apply its T-A table.
if(n->tacache){
//fprintf(stderr, "IT'S A REUSE %d %d %d %d\n", n->tacachey, rows, n->tacachex, cols);
if(n->tacachey == rows && n->tacachex == cols){
if(n->leny == rows && n->lenx == cols){
tacache = n->tacache;
reuse = true;
}

Loading…
Cancel
Save