8 |
|
|
9 |
|
#include "platform.h" |
10 |
|
#include "paths.h" |
11 |
< |
#include "rtprocess.h" |
11 |
> |
#include "paths.h" |
12 |
|
#include "pcond.h" |
13 |
|
|
14 |
|
|
199 |
|
} |
200 |
|
|
201 |
|
|
202 |
< |
extern void |
202 |
> |
void |
203 |
|
syserror( /* report system error and exit */ |
204 |
|
char *s |
205 |
|
) |
260 |
|
progname); |
261 |
|
exit(1); |
262 |
|
} |
263 |
< |
if (!gotview || ourview.type == VT_PAR) { |
263 |
> |
if (!gotview || ourview.type == VT_PAR || |
264 |
> |
(ourview.horiz <= 5.) | (ourview.vert <= 5.)) { |
265 |
|
ourview = stdview; |
266 |
|
ourview.type = VT_PER; |
267 |
|
if (pixaspect*inpres.yr < inpres.xr) { |
344 |
|
sprintf(combuf, "pfilt -1 -b -pa 0 -x %d -y %d \"%s\"", fvxr, fvyr, infn); |
345 |
|
if ((fp = popen(combuf, "r")) == NULL) |
346 |
|
syserror("popen"); |
347 |
+ |
SET_FILE_BINARY(fp); |
348 |
|
getheader(fp, NULL, NULL); /* skip header */ |
349 |
|
if (fgetresolu(&x, &y, fp) < 0 || (x != fvxr) | (y != fvyr)) |
350 |
|
goto readerr; |
365 |
|
{ |
366 |
|
double sum; |
367 |
|
double b, l; |
368 |
< |
register int i; |
368 |
> |
int i; |
369 |
|
|
370 |
|
/* check for within display range */ |
371 |
|
if (bwmax - bwmin <= Bldmax - Bldmin) |