kitty_wipe: don't set INVALIDATED unless in QUIESCENT #1395

pull/1809/head
nick black 3 years ago committed by Nick Black
parent d7f3800009
commit e9be8e67d2

@ -393,7 +393,9 @@ 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;
s->invalidated = SPRIXEL_INVALIDATED;
if(s->invalidated == SPRIXEL_QUIESCENT){
s->invalidated = SPRIXEL_INVALIDATED;
}
return 1;
}
thisrow = targx;
@ -612,7 +614,6 @@ int kitty_destroy(const notcurses* nc __attribute__ ((unused)),
// returns the number of bytes written
int kitty_draw(const ncpile* p, sprixel* s, FILE* out){
fprintf(stderr, "DRAWING %d\n", s->id);
(void)p;
int ret = s->glyphlen;
if(fwrite(s->glyph, s->glyphlen, 1, out) != 1){
@ -623,7 +624,6 @@ fprintf(stderr, "DRAWING %d\n", s->id);
}
int kitty_move(const ncpile* p, sprixel* s, FILE* out){
fprintf(stderr, "MOVING %d\n", s->id);
(void)p;
int ret = 0;
if(fprintf(out, "\e_Ga=p,i=%d,p=1,q=2\e\\", s->id) < 0){
@ -631,7 +631,6 @@ fprintf(stderr, "MOVING %d\n", s->id);
}
s->invalidated = SPRIXEL_QUIESCENT;
return ret;
//return kitty_draw(p, s, out);
}
// clears all kitty bitmaps

Loading…
Cancel
Save