| 16 |
|
|
| 17 |
|
#include "color.h" |
| 18 |
|
|
| 19 |
+ |
#include "resolu.h" |
| 20 |
+ |
|
| 21 |
|
#include "calcomp.h" |
| 22 |
|
|
| 23 |
|
#define MAXINP 32 /* maximum number of input files */ |
| 183 |
|
printargs(argc, argv, stdout); |
| 184 |
|
fputformat(COLRFMT, stdout); |
| 185 |
|
putchar('\n'); |
| 186 |
< |
fputresolu(YMAJOR|YDECR, xres, yres, stdout); |
| 186 |
> |
fprtresolu(xres, yres, stdout); |
| 187 |
|
/* combine pictures */ |
| 188 |
|
combine(); |
| 189 |
|
quit(0); |
| 234 |
|
eputs(": not in Radiance picture format\n"); |
| 235 |
|
quit(1); |
| 236 |
|
} |
| 237 |
< |
if (fgetresolu(&xinp, &yinp, input[nfiles].fp) != (YMAJOR|YDECR)) { |
| 237 |
> |
if (fgetresolu(&xinp, &yinp, input[nfiles].fp) < 0) { |
| 238 |
|
eputs(input[nfiles].name); |
| 239 |
|
eputs(": bad picture size\n"); |
| 240 |
|
quit(1); |