|
|
@ -696,7 +696,7 @@ int sixel_destroy(const notcurses* nc, const ncpile* p, FILE* out, sprixel* s){
|
|
|
|
for(int xx = startx ; xx < startx + s->dimx && xx < p->dimx ; ++xx){
|
|
|
|
for(int xx = startx ; xx < startx + s->dimx && xx < p->dimx ; ++xx){
|
|
|
|
struct crender *r = &p->crender[yy * p->dimx + xx];
|
|
|
|
struct crender *r = &p->crender[yy * p->dimx + xx];
|
|
|
|
if(!r->sprixel){
|
|
|
|
if(!r->sprixel){
|
|
|
|
//r->s.damaged = 1;
|
|
|
|
r->s.damaged = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -846,7 +846,7 @@ wipe_color(sixelmap* smap, int color, int sband, int eband,
|
|
|
|
int sixel_wipe(sprixel* s, int ycell, int xcell){
|
|
|
|
int sixel_wipe(sprixel* s, int ycell, int xcell){
|
|
|
|
if(s->n->tam[s->dimx * ycell + xcell].state == SPRIXCELL_ANNIHILATED){
|
|
|
|
if(s->n->tam[s->dimx * ycell + xcell].state == SPRIXCELL_ANNIHILATED){
|
|
|
|
//fprintf(stderr, "CACHED WIPE %d %d/%d\n", s->id, ycell, xcell);
|
|
|
|
//fprintf(stderr, "CACHED WIPE %d %d/%d\n", s->id, ycell, xcell);
|
|
|
|
return 0; // already annihilated FIXME but 0 breaks things
|
|
|
|
return 1; // already annihilated FIXME but 0 breaks things
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//fprintf(stderr, "WIPING %d/%d\n", ycell, xcell);
|
|
|
|
//fprintf(stderr, "WIPING %d/%d\n", ycell, xcell);
|
|
|
|
uint8_t* auxvec = sprixel_auxiliary_vector(s);
|
|
|
|
uint8_t* auxvec = sprixel_auxiliary_vector(s);
|
|
|
|