sprixel_debug: don't perform overeager invalid decoding

This commit is contained in:
nick black 2021-09-11 00:12:39 -04:00 committed by nick black
parent 4a6e45adb6
commit 86ea9d00d0

View File

@ -23,11 +23,7 @@ void sprixel_debug(const sprixel* s, FILE* out){
for(int x = 0 ; x < s->dimx ; ++x){
if(s->n->tam[idx].state == SPRIXCELL_ANNIHILATED){
if(s->n->tam[idx].auxvector){
fprintf(out, "%03d] ", idx);
for(int p = 0 ; p < s->cellpxx * s->cellpxy ; ++p){
fprintf(out, "%02x ", s->n->tam[idx].auxvector[p]);
}
fprintf(out, "\n");
fprintf(out, "%03d] %p\n", idx, s->n->tam[idx].auxvector);
}else{
fprintf(out, "%03d] missing!\n", idx);
}