139 |
|
} |
140 |
|
|
141 |
|
|
142 |
– |
static double inpaspect; /* aspect ratio of input picture */ |
143 |
– |
|
142 |
|
static |
143 |
< |
headaspect(s) /* check string for aspect ratio */ |
143 |
> |
headaspect(s, iap) /* check string for aspect ratio */ |
144 |
|
char *s; |
145 |
+ |
double *iap; |
146 |
|
{ |
147 |
|
if (isaspect(s)) |
148 |
< |
inpaspect *= aspectval(s); |
148 |
> |
*iap *= aspectval(s); |
149 |
|
} |
150 |
|
|
151 |
|
|
154 |
|
char *pname; |
155 |
|
{ |
156 |
|
extern char *libpath; |
157 |
+ |
double inpaspect; |
158 |
|
char *pfname; |
159 |
|
FILE *fp; |
160 |
|
COLOR *scanin; |
189 |
|
#endif |
190 |
|
/* get dimensions */ |
191 |
|
inpaspect = 1.0; |
192 |
< |
getheader(fp, headaspect); |
192 |
> |
getheader(fp, headaspect, &inpaspect); |
193 |
|
if (!fgetsresolu(&inpres, fp)) |
194 |
|
goto readerr; |
195 |
|
for (i = 0; i < 3; i++) { |