Skip to content

Commit

Permalink
paint(): need blittedquads != 0 to stack blitters #1068
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Feb 2, 2021
1 parent 87def26 commit 2507a17
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/lib/render.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,11 @@ paint(const ncplane* p, struct crender* rvec, int dstleny, int dstlenx,
// Evaluate the background first, in case we have HIGHCONTRAST fg text.
if(cell_bg_alpha(targc) > CELL_ALPHA_OPAQUE){
const nccell* vis = &p->fb[nfbcellidx(p, y, x)];
//fprintf(stderr, "y/x: %d/%d crenderbq: 0x%x visbq: 0x%x\n", y, x, crender->s.blittedquads, cell_blittedquadrants(vis));
if(!((~crender->s.blittedquads) & cell_blittedquadrants(vis))){
// to be on the blitter stacking path, we need
// 1) crender->s.blittedquads to be non-zero
// 2) cell_blittedquadrants(vis) to be non-zero
// 3) somewhere crender is 0, blittedquads is 1
if(!crender->s.blittedquads || !((~crender->s.blittedquads) & cell_blittedquadrants(vis))){
if(cell_bg_default_p(vis)){
vis = &p->basecell;
}
Expand Down

0 comments on commit 2507a17

Please sign in to comment.