| # | Line 144 | Line 144 | char *argv[]; | |
|---|---|---|
| 144 | if (fgetresolu(&xmax, &ymax, fin) != (YMAJOR|YDECR)) | |
| 145 | quiterr("bad picture size"); | |
| 146 | /* set view parameters */ | |
| 147 | < | if (gotview) { |
| 148 | < | ourview.hresolu = xmax; |
| 149 | < | ourview.vresolu = ymax; |
| 147 | > | if (gotview) |
| 148 | if (setview(&ourview) != NULL) | |
| 149 | gotview = 0; | |
| 150 | < | } |
| 150 | > | |
| 151 | if ((scanline = (COLR *)malloc(xmax*sizeof(COLR))) == NULL) | |
| 152 | quiterr("out of memory"); | |
| 153 | ||
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |