mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-10-31 15:20:13 +00:00
kitty_delete: always damage if s->n link is broken on hide #1562
This commit is contained in:
parent
0cddfdde7b
commit
1b7ea2037a
@ -389,14 +389,16 @@ int kitty_delete(const notcurses* nc, const ncpile* p, FILE* out, sprixel* s){
|
||||
//fprintf(stderr, "CHECKING %d/%d\n", yy - s->movedfromy, xx - s->movedfromx);
|
||||
sprixcell_e state = sprixel_state(s, yy - s->movedfromy + s->n->absy - stdn->absy,
|
||||
xx - s->movedfromx + s->n->absx - stdn->absx);
|
||||
// ideally, we wouldn't damage our annihilated sprixcells, but if
|
||||
// we're being annihilated only during this cycle, we need to go
|
||||
// ahead and damage it.
|
||||
if(state == SPRIXCELL_OPAQUE){
|
||||
r->s.damaged = 1;
|
||||
}else if(s->invalidated == SPRIXEL_MOVED){
|
||||
// ideally, we wouldn't damage our annihilated sprixcells, but if
|
||||
// we're being annihilated only during this cycle, we need to go
|
||||
// ahead and damage it.
|
||||
r->s.damaged = 1;
|
||||
}
|
||||
}else{
|
||||
r->s.damaged = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user