diff --git a/src/lib/internal.h b/src/lib/internal.h index 60dee6acf..4b4778feb 100644 --- a/src/lib/internal.h +++ b/src/lib/internal.h @@ -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; diff --git a/src/lib/kitty.c b/src/lib/kitty.c index d3b994e5a..69ea5910c 100644 --- a/src/lib/kitty.c +++ b/src/lib/kitty.c @@ -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; } diff --git a/src/lib/sixel.c b/src/lib/sixel.c index de39d1db2..4f918dd2b 100644 --- a/src/lib/sixel.c +++ b/src/lib/sixel.c @@ -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; }