kitty: must redraw for wipe/rebuild #1395

This commit is contained in:
nick black 2021-06-20 12:22:24 -04:00 committed by Nick Black
parent e9be8e67d2
commit 553c0637bf

View File

@ -314,6 +314,7 @@ int kitty_rebuild(sprixel* s, int ycell, int xcell, uint8_t* auxvec){
//fprintf(stderr, "CLEARED ROW, TARGY: %d\n", targy - 1); //fprintf(stderr, "CLEARED ROW, TARGY: %d\n", targy - 1);
if(--targy == 0){ if(--targy == 0){
s->n->tam[s->dimx * ycell + xcell].state = state; s->n->tam[s->dimx * ycell + xcell].state = state;
s->invalidated = SPRIXEL_INVALIDATED;
return 0; return 0;
} }
thisrow = targx; thisrow = targx;
@ -393,9 +394,7 @@ int kitty_wipe(sprixel* s, int ycell, int xcell){
//fprintf(stderr, "CLEARED ROW, TARGY: %d\n", targy - 1); //fprintf(stderr, "CLEARED ROW, TARGY: %d\n", targy - 1);
if(--targy == 0){ if(--targy == 0){
s->n->tam[s->dimx * ycell + xcell].auxvector = auxvec; s->n->tam[s->dimx * ycell + xcell].auxvector = auxvec;
if(s->invalidated == SPRIXEL_QUIESCENT){ s->invalidated = SPRIXEL_INVALIDATED;
s->invalidated = SPRIXEL_INVALIDATED;
}
return 1; return 1;
} }
thisrow = targx; thisrow = targx;