| 14 |
|
#include "calcomp.h" |
| 15 |
|
#include "view.h" |
| 16 |
|
|
| 17 |
< |
#define MAXINP 32 /* maximum number of input files */ |
| 17 |
> |
#define MAXINP 512 /* maximum number of input files */ |
| 18 |
|
#define WINSIZ 64 /* scanline window size */ |
| 19 |
|
#define MIDSCN ((WINSIZ-1)/2+1) |
| 20 |
|
|
| 439 |
|
eputs(": read error\n"); |
| 440 |
|
quit(1); |
| 441 |
|
} |
| 442 |
< |
if (fabs(colval(input[i].coef,RED)-1.0) > 1e-3 || |
| 443 |
< |
fabs(colval(input[i].coef,GRN)-1.0) > 1e-3 || |
| 444 |
< |
fabs(colval(input[i].coef,BLU)-1.0) > 1e-3) |
| 445 |
< |
for (j = 0; j < xmax; j++) /* adjust color */ |
| 446 |
< |
multcolor(st[j], input[i].coef); |
| 442 |
> |
for (j = 0; j < xmax; j++) /* adjust color */ |
| 443 |
> |
multcolor(st[j], input[i].coef); |
| 444 |
|
} |
| 445 |
|
} |
| 446 |
|
|
| 598 |
|
if (input[fn].vw.type == 0) |
| 599 |
|
errno = EDOM; |
| 600 |
|
else if (input[fn].vw.type != VT_PAR && |
| 601 |
< |
funvalue(vray[6], 1, &d) > FTINY) { |
| 601 |
> |
funvalue(vray[6], 1, &d) >= -FTINY) { |
| 602 |
|
for (i = 0; i < 3; i++) |
| 603 |
|
dir0[i] = funvalue(vray[3+i], 1, &d); |
| 604 |
|
pix2loc(locx, &input[fn].rs, xscan+1, ymax-1-yscan); |