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.5 by schorsch, Thu Jun 26 00:58:11 2003 UTC vs.
Revision 3.9 by greg, Wed Oct 22 02:06:35 2003 UTC

# Line 5 | Line 5 | static const char      RCSid[] = "$Id$";
5   * Compute rays corresponding to a given picture or view.
6   */
7  
8 <
8 > #include "platform.h"
9   #include "standard.h"
10
10   #include "view.h"
11  
12   extern int      putf(), putd(), puta();
# Line 99 | Line 98 | char   *argv[];
98                  default:
99                          goto userr;
100                  }
101 <        if (i > argc | i+2 < argc)
101 >        if ((i > argc) | (i+2 < argc))
102                  goto userr;
103          if (i < argc) {
104                  rval = viewfile(argv[i], &vw, &rs);
# Line 161 | Line 160 | pix2rays(FILE *fp)
160                  if (zfd >= 0) {
161                          loc2pix(pp, &rs, px/rs.xr, py/rs.yr);
162                          if (lseek(zfd,
163 <                                (pp[1]*scanlen(&rs)+pp[0])*sizeof(float), 0)
164 <                                        < 0 ||
163 >                                (pp[1]*scanlen(&rs)+pp[0])*sizeof(float),
164 >                                                SEEK_SET) < 0 ||
165                                          read(zfd, &zval, sizeof(float))
166 <                                        < sizeof(float)) {
166 >                                                < sizeof(float)) {
167                                  fprintf(stderr, "%s: depth buffer read error\n",
168                                                  progname);
169                                  exit(1);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines