paint: referene crender, not rvec #1482

pull/1502/head^2
nick black 4 years ago
parent 0dbd3cf830
commit 7c35d94a9b
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -265,8 +265,8 @@ paint(const ncplane* p, struct crender* rvec, int dstleny, int dstlenx,
}else if(!crender->p){ }else if(!crender->p){
// if we are a bitmap, and above a cell that has changed (and // if we are a bitmap, and above a cell that has changed (and
// will thus be printed), we'll need redraw the sprixel. // will thus be printed), we'll need redraw the sprixel.
if(rvec->sprixel == NULL){ if(crender->sprixel == NULL){
rvec->sprixel = sprixel_by_id(ncplane_notcurses_const(p), cell_sprixel_id(vis)); crender->sprixel = sprixel_by_id(ncplane_notcurses_const(p), cell_sprixel_id(vis));
} }
} }
continue; continue;
@ -355,7 +355,7 @@ paint(const ncplane* p, struct crender* rvec, int dstleny, int dstlenx,
// if the following is true, we're a real glyph, and not the right-hand // if the following is true, we're a real glyph, and not the right-hand
// side of a wide glyph (nor the null codepoint). // side of a wide glyph (nor the null codepoint).
if( (targc->gcluster = vis->gcluster) ){ // index copy only if( (targc->gcluster = vis->gcluster) ){ // index copy only
if(rvec->sprixel && rvec->sprixel->invalidated == SPRIXEL_HIDE){ if(crender->sprixel && crender->sprixel->invalidated == SPRIXEL_HIDE){
crender->s.damaged = true; crender->s.damaged = true;
} }
crender->s.blittedquads = cell_blittedquadrants(vis); crender->s.blittedquads = cell_blittedquadrants(vis);

@ -18,7 +18,7 @@ void sprixel_free(sprixel* s){
} }
sprixel* sprixel_recycle(ncplane* n, ncvisual* ncv){ sprixel* sprixel_recycle(ncplane* n, ncvisual* ncv){
const notcurses* nc = ncplane_notcurses(n); const notcurses* nc = ncplane_notcurses_const(n);
if(nc->tcache.pixel_destroy == sprite_kitty_annihilate){ if(nc->tcache.pixel_destroy == sprite_kitty_annihilate){
sprixel* hides = n->sprite ? n->sprite : ncv->spx; sprixel* hides = n->sprite ? n->sprite : ncv->spx;
assert(hides); assert(hides);

Loading…
Cancel
Save