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.7 by schorsch, Sun Jul 27 22:12:04 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
9 #include "standard.h"
10
8   #include "platform.h"
9 + #include "standard.h"
10   #include "view.h"
11  
12   extern int      putf(), putd(), puta();
# Line 162 | 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