sprite_wipe_cell: purge unnecessary fxn check

pull/1535/head
nick black 3 years ago
parent 282830e31c
commit f5d16e1e89
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -132,11 +132,8 @@ int sprite_wipe_cell(const notcurses* nc, sprixel* s, int ycell, int xcell){
// so that we use this fact should we move to another frame
s->n->tacache[s->dimx * ycell + xcell] = SPRIXCELL_ANNIHILATED;
//fprintf(stderr, "ANNIHILATED %p %d\n", s->n->tacache, s->dimx * ycell + xcell);
if(!nc->tcache.pixel_cell_wipe){ // sixel has no cell wiping
return -1;
}
//fprintf(stderr, "WIPING %d %d/%d\n", s->id, ycell, xcell);
int r = nc->tcache.pixel_cell_wipe(nc, s, ycell, xcell);
//fprintf(stderr, "WIPED %d %d/%d ret=%d\n", s->id, ycell, xcell, r);
if(r == 0){
s->invalidated = SPRIXEL_INVALIDATED;
}

Loading…
Cancel
Save