mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
sprite_wipe_cell: purge unnecessary fxn check
This commit is contained in:
parent
282830e31c
commit
f5d16e1e89
@ -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…
x
Reference in New Issue
Block a user