error checking
This commit is contained in:
parent
cd1f278d45
commit
5f4e6e8fa8
@ -35,7 +35,6 @@ else {
|
|||||||
fp = stdout; /* XXX */
|
fp = stdout; /* XXX */
|
||||||
for (y=0; y<src->height; y+=steps) {
|
for (y=0; y<src->height; y+=steps) {
|
||||||
for (x=0; x<src->width; x+=steps) {
|
for (x=0; x<src->width; x+=steps) {
|
||||||
|
|
||||||
fimg_get_rgb(src, x, y, rgb);
|
fimg_get_rgb(src, x, y, rgb);
|
||||||
fprintf(fp, "%d %d ", x, y);
|
fprintf(fp, "%d %d ", x, y);
|
||||||
fprintf(fp, "%f %f %f\n", rgb[0], rgb[1], rgb[2]);
|
fprintf(fp, "%f %f %f\n", rgb[0], rgb[1], rgb[2]);
|
||||||
@ -120,7 +119,9 @@ if (norm > 0.0) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
foo = export_as_machinable(&fimg, dstname, steps, 0);
|
foo = export_as_machinable(&fimg, dstname, steps, 0);
|
||||||
|
if (foo) {
|
||||||
|
fprintf(stderr,"%s: err %d on export\n", __func__, foo);
|
||||||
|
}
|
||||||
fimg_destroy(&fimg);
|
fimg_destroy(&fimg);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user