mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-02 09:40:15 +00:00
ncdirect_dump_plane: fix sprite_draw() error check #1980
This commit is contained in:
parent
b67c6b8fb2
commit
ddbc36e872
@ -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)){
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user