--- ray/src/rt/rpict.c 1989/06/13 10:57:40 1.5 +++ ray/src/rt/rpict.c 1989/09/12 12:28:26 1.7 @@ -36,7 +36,7 @@ double minweight = 5e-3; /* minimum ray weight */ COLOR ambval = BLKCOLOR; /* ambient value */ double ambacc = 0.2; /* ambient accuracy */ -int ambres = 128; /* ambient resolution */ +int ambres = 32; /* ambient resolution */ int ambdiv = 128; /* ambient divisions */ int ambssamp = 0; /* ambient super-samples */ int ambounce = 0; /* ambient bounces */ @@ -112,7 +112,7 @@ char *oldfile; } /* write out boundaries */ - printf("-Y %d +X %d\n", ourview.vresolu, ourview.hresolu); + fputresolu(YMAJOR|YDECR, ourview.hresolu, ourview.vresolu, stdout); ypos = ourview.vresolu - salvage(oldfile); /* find top line */ fillscanline(scanbar[0], ypos, psample); /* top scan */ @@ -263,7 +263,7 @@ char *oldfile; /* discard header */ getheader(fp, NULL); /* get picture size */ - if (fscanf(fp, "-Y %d +X %d\n", &y, &x) != 2) { + if (fgetresolu(&x, &y, fp) != (YMAJOR|YDECR)) { sprintf(errmsg, "bad recover file \"%s\"", oldfile); error(WARNING, errmsg); fclose(fp);