| # | Line 184 | Line 184 | pix2rays( | |
|---|---|---|
| 184 | ||
| 185 | while (fscanf(fp, "%lf %lf", &px, &py) == 2) { | |
| 186 | px += .5; py += .5; | |
| 187 | – | if (px < 0 || px >= rs.xr || |
| 188 | – | py < 0 || py >= rs.yr) { |
| 189 | – | fprintf(stderr, |
| 190 | – | "%s: (x,y) pair (%.0f,%.0f) out of range\n", |
| 191 | – | progname, px, py); |
| 192 | – | exit(1); |
| 193 | – | } |
| 187 | loc[0] = px/rs.xr; loc[1] = py/rs.yr; | |
| 188 | if (zfd >= 0) { | |
| 189 | loc2pix(pp, &rs, loc[0], loc[1]); | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |