make pixel implementation choice clearer

We were using the value of pixel_shutdown to decide
whether we needed to take a kitty-specific path or
not. Instead, just use the pixel_implementation field
of tinfo, which was added a few weeks back.
pull/2206/head
nick black 3 years ago committed by nick black
parent 6985d9a715
commit 9f2eb07ce6

@ -51,7 +51,7 @@ void sprixel_free(sprixel* s){
sprixel* sprixel_recycle(ncplane* n){
assert(n->sprite);
const notcurses* nc = ncplane_notcurses_const(n);
if(nc->tcache.pixel_shutdown == kitty_shutdown){
if(nc->tcache.pixel_implementation >= NCPIXEL_KITTY_STATIC){
sprixel* hides = n->sprite;
int dimy = hides->dimy;
int dimx = hides->dimx;

Loading…
Cancel
Save