mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-04 06:00:30 +00:00
sprixel_debug: don't perform overeager invalid decoding
This commit is contained in:
parent
4a6e45adb6
commit
86ea9d00d0
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user