remove unused cell_sprixel_id() #1656

pull/1660/head
nick black 3 years ago
parent f64b1deeb7
commit b87407eb36
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -262,12 +262,6 @@ cell_sprixel_p(const nccell* c){
return (htole(c->gcluster) & htole(0xff000000ul)) == htole(0x02000000ul);
}
// Is the cell part of a sprixel?
static inline uint32_t
cell_sprixel_id(const nccell* c){
return htole(c->gcluster) & htole(0xfffffful);
}
// Is the cell simple (a UTF8-encoded EGC of four bytes or fewer)?
static inline bool
cell_simple_p(const nccell* c){

@ -166,7 +166,7 @@ paint_sprixel(ncplane* p, struct crender* rvec, int starty, int startx,
}
sprixcell_e state = sprixel_state(s, absy, absx);
struct crender* crender = &rvec[fbcellidx(absy, dstlenx, absx)];
//fprintf(stderr, "presprixel: %p preid: %d id: %d state: %d\n", rvec->sprixel, rvec->sprixel ? rvec->sprixel->id : 0, cell_sprixel_id(vis), s->invalidated);
//fprintf(stderr, "presprixel: %p preid: %d state: %d\n", rvec->sprixel, rvec->sprixel ? rvec->sprixel->id : 0, s->invalidated);
// if we already have a glyph solved (meaning said glyph is above this
// sprixel), and we run into a bitmap cell, we need to null that cell out
// of the bitmap.

Loading…
Cancel
Save