# | Line 141 | Line 141 | char *argv[]; | |
---|---|---|
141 | /* get header */ | |
142 | getheader(fin, headline); | |
143 | /* get picture dimensions */ | |
144 | < | if (fscanf(fin, "-Y %d +X %d\n", &ymax, &xmax) != 2) |
144 | > | if (fgetresolu(&xmax, &ymax, fin) != (YMAJOR|YDECR)) |
145 | quiterr("bad picture size"); | |
146 | /* set view parameters */ | |
147 | if (gotview) { | |
# | Line 689 | Line 689 | pixel *l; | |
689 | } | |
690 | ||
691 | ||
692 | < | picreadcm(map) /* do gamcor correction */ |
692 | > | picreadcm(map) /* do gamma correction */ |
693 | colormap map; | |
694 | { | |
695 | extern double pow(); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |