401 |
|
VIEW pview; |
402 |
|
int xorg, yorg; |
403 |
|
/* compute view parameters */ |
404 |
< |
copystruct(&pview, &ourview); |
404 |
> |
pview = ourview; |
405 |
|
switch (ourview.type) { |
406 |
|
case VT_PER: |
407 |
|
pview.horiz = 2.*180./PI*atan( |
452 |
|
int hr, vr; |
453 |
|
register int y; |
454 |
|
/* check bounds */ |
455 |
< |
if (xpos < 0 | ypos < 0 | xpos >= hmult | ypos >= vmult) { |
455 |
> |
if ((xpos < 0) | (ypos < 0) | (xpos >= hmult) | (ypos >= vmult)) { |
456 |
|
fprintf(stderr, "%s: requested piece (%d,%d) out of range\n", |
457 |
|
progname, xpos, ypos); |
458 |
|
exit(cleanup(1)); |
460 |
|
/* check header from rpict */ |
461 |
|
guard_io(); |
462 |
|
getheader(fromrp, NULL, NULL); |
463 |
< |
if (!fscnresolu(&hr, &vr, fromrp) || hr != hres | vr != vres) { |
463 |
> |
if (!fscnresolu(&hr, &vr, fromrp) || (hr != hres) | (vr != vres)) { |
464 |
|
fprintf(stderr, "%s: resolution mismatch from %s\n", |
465 |
|
progname, rpargv[0]); |
466 |
|
exit(cleanup(1)); |