ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/vwrays.c
(Generate patch)

Comparing ray/src/util/vwrays.c (file contents):
Revision 3.12 by greg, Mon Sep 19 04:26:09 2005 UTC vs.
Revision 3.15 by greg, Tue Aug 16 02:22:50 2011 UTC

# Line 56 | Line 56 | main(
56                                  break;
57                          case 'f':                       /* float */
58                                  putr = putf;
59 +                                SET_FILE_BINARY(stdout);
60                                  break;
61                          case 'd':                       /* double */
62                                  putr = putd;
63 +                                SET_FILE_BINARY(stdout);
64                                  break;
65                          default:
66                                  goto userr;
# Line 103 | Line 105 | main(
105                          if (argv[i][2] == 'a')
106                                  pa = atof(argv[++i]);
107                          else if (argv[i][2] == 'j')
108 <                                pj= atof(argv[++i]);
108 >                                pj = atof(argv[++i]);
109                          else
110                                  goto userr;
111                          break;
# Line 182 | Line 184 | pix2rays(
184  
185          while (fscanf(fp, "%lf %lf", &px, &py) == 2) {
186                  px += .5; py += .5;
185                if (px < 0 || px >= rs.xr ||
186                                py < 0 || py >= rs.yr) {
187                        fprintf(stderr,
188                                "%s: (x,y) pair (%.0f,%.0f) out of range\n",
189                                        progname, px, py);
190                        exit(1);
191                }
187                  loc[0] = px/rs.xr; loc[1] = py/rs.yr;
188                  if (zfd >= 0) {
189                          loc2pix(pp, &rs, loc[0], loc[1]);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines