Skip to content

Commit

Permalink
sprixel_debug: don't perform overeager invalid decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Sep 11, 2021
1 parent 4a6e45a commit 74bfde7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/lib/sprite.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 74bfde7

Please sign in to comment.