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