# | Line 145 | Line 145 | char *argv[]; | |
---|---|---|
145 | if (wrong_fmt) | |
146 | quitmsg("input must be a Radiance picture"); | |
147 | /* get picture dimensions */ | |
148 | < | if (fgetresolu(&xmax, &ymax, fin) != (YMAJOR|YDECR)) |
148 | > | if (fgetresolu(&xmax, &ymax, fin) < 0) |
149 | quitmsg("bad picture size"); | |
150 | if (xmax > NCOLS || ymax > NROWS) | |
151 | quitmsg("resolution mismatch"); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |