| 10 |
|
#include <stdlib.h> |
| 11 |
|
#include <string.h> |
| 12 |
|
|
| 13 |
+ |
#include "platform.h" |
| 14 |
|
#include "rtprocess.h" /* Windows: must come first because of conflicts */ |
| 15 |
|
#include "glare.h" |
| 16 |
|
|
| 249 |
|
/* send to rtrace */ |
| 250 |
|
if (n >= maxpix) { /* flush */ |
| 251 |
|
rt_compute(rt_buf, n); |
| 252 |
< |
while (n-- > 0) |
| 252 |
> |
while (n > 0) { |
| 253 |
> |
--n; |
| 254 |
|
vb[buf_vh[n]+hsize] = luminance(rt_buf+3*n); |
| 255 |
+ |
} |
| 256 |
|
} |
| 257 |
|
rt_buf[6*n] = ourview.vp[0]; |
| 258 |
|
rt_buf[6*n+1] = ourview.vp[1]; |
| 322 |
|
fprintf(stderr, "%s: cannot open\n", fn); |
| 323 |
|
exit(1); |
| 324 |
|
} |
| 325 |
+ |
SET_FILE_BINARY(pictfp); |
| 326 |
|
exposure = 1.0; |
| 327 |
|
getheader(pictfp, getexpos, NULL); |
| 328 |
|
if (wrongformat || !fscnresolu(&pxsiz, &pysiz, pictfp)) { |