mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-09-09 02:54:25 +00:00
png2hgr: add more debugging
This commit is contained in:
parent
c41bcf4e4a
commit
3be6fd4d05
@ -25,7 +25,7 @@
|
|||||||
#define DEFAULT_BLACK 1
|
#define DEFAULT_BLACK 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static int debug=0;
|
static int debug=0,color_warnings=0;
|
||||||
|
|
||||||
static int convert_color(int color) {
|
static int convert_color(int color) {
|
||||||
|
|
||||||
@ -437,6 +437,7 @@ int main(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
error=colors_to_bytes(colors,&byte1,&byte2);
|
error=colors_to_bytes(colors,&byte1,&byte2);
|
||||||
if (error!=0) {
|
if (error!=0) {
|
||||||
|
color_warnings++;
|
||||||
fprintf(stderr,"Warning: mixing colors at %d x %d\n",
|
fprintf(stderr,"Warning: mixing colors at %d x %d\n",
|
||||||
x*14+error*7,y);
|
x*14+error*7,y);
|
||||||
}
|
}
|
||||||
@ -449,5 +450,7 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
fwrite(apple2_image,8192,sizeof(unsigned char),stdout);
|
fwrite(apple2_image,8192,sizeof(unsigned char),stdout);
|
||||||
|
|
||||||
|
fprintf(stderr,"Total warnings: %d\n",color_warnings);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user