mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
scrub_color_table: use sprixel cell geom not plane cell geom #1689
This commit is contained in:
parent
d20a4d8104
commit
d216b4115e
@ -252,9 +252,11 @@ int sixel_wipe(sprixel* s, int ycell, int xcell){
|
||||
static int
|
||||
scrub_color_table(sprixel* s){
|
||||
if(s->n && s->n->tam){
|
||||
for(int y = 0 ; y < s->n->leny ; ++y){
|
||||
for(int x = 0 ; x < s->n->lenx ; ++x){
|
||||
int txyidx = y * s->n->lenx + x;
|
||||
// we use the sprixel cell geometry rather than the plane's because this
|
||||
// is called during our initial blit, before we've resized the plane.
|
||||
for(int y = 0 ; y < s->dimy ; ++y){
|
||||
for(int x = 0 ; x < s->dimx ; ++x){
|
||||
int txyidx = y * s->dimx + x;
|
||||
sprixcell_e state = s->n->tam[txyidx].state;
|
||||
if(state == SPRIXCELL_ANNIHILATED || state == SPRIXCELL_ANNIHILATED_TRANS){
|
||||
//fprintf(stderr, "POSTEXRACT WIPE %d/%d\n", y, x);
|
||||
|
Loading…
x
Reference in New Issue
Block a user