232 |
|
for ( ; seq < rn; seq++) |
233 |
|
if (nextview(stdin) == EOF) |
234 |
|
error(USER, "unexpected EOF on view input"); |
235 |
+ |
setview(&ourview); |
236 |
|
prvr = fbuf; /* mark for renaming */ |
237 |
|
} |
238 |
|
if (pout != NULL & prvr != NULL) { |
274 |
|
fbuf); |
275 |
|
error(USER, errmsg); |
276 |
|
} |
277 |
+ |
setview(&ourview); |
278 |
|
continue; /* don't clobber */ |
279 |
|
} |
280 |
|
if (freopen(fbuf, "w", stdout) == NULL) { |
348 |
|
render(zfile, oldfile) /* render the scene */ |
349 |
|
char *zfile, *oldfile; |
350 |
|
{ |
349 |
– |
extern long lseek(); |
351 |
|
COLOR *scanbar[MAXDIV+1]; /* scanline arrays of pixel values */ |
352 |
|
float *zbar[MAXDIV+1]; /* z values */ |
353 |
|
char *sampdens; /* previous sample density */ |
400 |
|
if (i >= vres) |
401 |
|
goto alldone; |
402 |
|
if (zfd != -1 && i > 0 && |
403 |
< |
lseek(zfd, (long)i*hres*sizeof(float), 0) == -1) |
403 |
> |
lseek(zfd, (long)i*hres*sizeof(float), 0) < 0) |
404 |
|
error(SYSTEM, "z-file seek error in render"); |
405 |
|
pctdone = 100.0*i/vres; |
406 |
|
if (ralrm > 0) /* report init stats */ |