From 553c0637bf919a53aa0955337d6478a1f0c39b87 Mon Sep 17 00:00:00 2001 From: nick black Date: Sun, 20 Jun 2021 12:22:24 -0400 Subject: [PATCH] kitty: must redraw for wipe/rebuild #1395 --- src/lib/kitty.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/kitty.c b/src/lib/kitty.c index 17b0d2e96..d7c22d407 100644 --- a/src/lib/kitty.c +++ b/src/lib/kitty.c @@ -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); if(--targy == 0){ s->n->tam[s->dimx * ycell + xcell].state = state; + s->invalidated = SPRIXEL_INVALIDATED; return 0; } thisrow = targx; @@ -393,9 +394,7 @@ int kitty_wipe(sprixel* s, int ycell, int xcell){ //fprintf(stderr, "CLEARED ROW, TARGY: %d\n", targy - 1); if(--targy == 0){ s->n->tam[s->dimx * ycell + xcell].auxvector = auxvec; - if(s->invalidated == SPRIXEL_QUIESCENT){ - s->invalidated = SPRIXEL_INVALIDATED; - } + s->invalidated = SPRIXEL_INVALIDATED; return 1; } thisrow = targx;