40 |
|
|
41 |
|
int avghot = 0; /* true means average in bright spots */ |
42 |
|
|
43 |
< |
double hotlvl = 1000.0; /* level considered "hot" */ |
43 |
> |
double hotlvl = 100.0; /* level considered "hot" */ |
44 |
|
|
45 |
|
int npts = 0; /* (half) number of points for stars */ |
46 |
|
|
292 |
|
fputs(s, stdout); /* copy to output */ |
293 |
|
if (isaspect(s)) /* get aspect ratio */ |
294 |
|
inpaspect *= aspectval(s); |
295 |
+ |
else if (isexpos(s)) |
296 |
+ |
hotlvl *= exposval(s); |
297 |
|
else if (isformat(s)) { |
298 |
|
formatval(fmt, s); |
299 |
|
wrongformat = strcmp(fmt, COLRFMT); |
331 |
|
} |
332 |
|
for (i = 0; i < yres; i++) { |
333 |
|
if (freadscan(scan, xres, in) < 0) { |
334 |
< |
nrows = nrows * i / yres; /* adjust frame */ |
334 |
> |
nrows = (long)nrows * i / yres; /* adjust frame */ |
335 |
|
if (nrows <= 0) { |
336 |
|
fprintf(stderr, "%s: empty frame\n", progname); |
337 |
|
quit(1); |
338 |
|
} |
339 |
|
fprintf(stderr, "%s: warning - partial frame (%d%%)\n", |
340 |
< |
progname, 100*i/yres); |
340 |
> |
progname, (int)(100L*i/yres)); |
341 |
|
yres = i; |
342 |
|
y_r = (double)nrows/yres; |
343 |
|
break; |