|
|
|
@ -512,12 +512,14 @@ int sixel_blit(ncplane* n, int linesize, const void* data,
|
|
|
|
|
return r;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int sixel_delete(const notcurses* nc, const ncpile* p, FILE* out, sprixel* s){
|
|
|
|
|
int sixel_destroy(const notcurses* nc, const ncpile* p, FILE* out, sprixel* s){
|
|
|
|
|
//fprintf(stderr, "%d] %d %p\n", s->id, s->invalidated, s->n);
|
|
|
|
|
(void)nc;
|
|
|
|
|
(void)out;
|
|
|
|
|
for(int yy = s->movedfromy ; yy < s->movedfromy + s->dimy && yy < p->dimy ; ++yy){
|
|
|
|
|
for(int xx = s->movedfromx ; xx < s->movedfromx + s->dimx && xx < p->dimx ; ++xx){
|
|
|
|
|
const ncplane* stdn = notcurses_stdplane_const(nc);
|
|
|
|
|
int starty = s->movedfromy;
|
|
|
|
|
int startx = s->movedfromx;
|
|
|
|
|
for(int yy = starty ; yy < starty + s->dimy && yy < p->dimy ; ++yy){
|
|
|
|
|
for(int xx = startx ; xx < startx + s->dimx && xx < p->dimx ; ++xx){
|
|
|
|
|
struct crender *r = &p->crender[yy * p->dimx + xx];
|
|
|
|
|
if(!r->sprixel){
|
|
|
|
|
r->s.damaged = 1;
|
|
|
|
|