diff --git a/src/lib/direct.c b/src/lib/direct.c index b27f575cc..486e8cd38 100644 --- a/src/lib/direct.c +++ b/src/lib/direct.c @@ -515,7 +515,7 @@ ncdirect_dump_plane(ncdirect* n, const ncplane* np, int xoff){ if(ncdirect_flush(n)){ return -1; } - if(sprite_draw(&n->tcache, NULL, np->sprite, n->ttyfp, 0, xoff)){ + if(sprite_draw(&n->tcache, NULL, np->sprite, n->ttyfp, 0, xoff) < 0){ return -1; } if(sprite_commit(&n->tcache, n->ttyfp, np->sprite, true)){ diff --git a/src/lib/internal.h b/src/lib/internal.h index 5cc141dfa..db6fea3df 100644 --- a/src/lib/internal.h +++ b/src/lib/internal.h @@ -675,7 +675,7 @@ uint8_t* sprixel_auxiliary_vector(const sprixel* s); static inline int sprite_scrub(const notcurses* n, const ncpile* p, sprixel* s){ //sprixel_debug(s, stderr); - logdebug("Sprixel %u state %d\n", s->id, s->invalidated); + logdebug("sprixel %u state %d\n", s->id, s->invalidated); return n->tcache.pixel_scrub(p, s); } @@ -685,7 +685,7 @@ static inline int sprite_draw(const tinfo* ti, const ncpile* p, sprixel* s, FILE* out, int y, int x){ //sprixel_debug(s, stderr); - logdebug("Sprixel %u state %d\n", s->id, s->invalidated); + logdebug("sprixel %u state %d\n", s->id, s->invalidated); return ti->pixel_draw(ti, p, s, out, y, x); } @@ -695,7 +695,7 @@ static inline int sprite_redraw(const tinfo* ti, const ncpile* p, sprixel* s, FILE* out, int y, int x){ //sprixel_debug(s, stderr); - logdebug("Sprixel %u state %d\n", s->id, s->invalidated); + logdebug("sprixel %u state %d\n", s->id, s->invalidated); if(s->invalidated == SPRIXEL_MOVED && ti->pixel_move){ // if we are kitty prior to 0.20.0, C=1 isn't available to us, and we must // not emit it. we use sixel_maxy_pristine as a side channel to encode