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

Comparing ray/src/rt/rpict.c (file contents):
Revision 1.18 by greg, Wed Feb 21 12:39:37 1990 UTC vs.
Revision 1.21 by greg, Tue Jun 26 09:00:12 1990 UTC

# Line 149 | Line 149 | char  *zfile, *oldfile;
149                                                  /* compute scanlines */
150          for (ypos -= ystep; ypos > -ystep; ypos -= ystep) {
151                                                          /* record progress */
152 <                pctdone = 100.0*(vresolu-ypos-ystep)/vresolu;
152 >                pctdone = 100.0*(vresolu-1-ypos-ystep)/vresolu;
153                                                          /* bottom adjust? */
154                  if (ypos < 0) {
155                          ystep += ypos;
# Line 182 | Line 182 | char  *zfile, *oldfile;
182                  if (write(zfd, (char *)zbar[0], hresolu*sizeof(float))
183                                  < hresolu*sizeof(float))
184                          goto writerr;
185 <                close(zfd);
185 >                if (close(zfd) == -1)
186 >                        goto writerr;
187                  for (i = 0; i <= psample; i++)
188                          free((char *)zbar[i]);
189          }
# Line 234 | Line 235 | int  xres, y, ysize;
235          COLOR  vline[MAXDIV+1];
236          float  zline[MAXDIV+1];
237          int  b = ysize;
237        double  z;
238          register int  i, j;
239          
240          for (i = 0; i < xres; i++) {
# Line 329 | Line 329 | int  x, y;                     /* pixel position */
329  
330          copycolor(col, thisray.rcol);           /* return color */
331          
332 <        return(thisray.rot);                    /* return distance */
332 >        return(thisray.rt);                     /* return distance */
333   }
334  
335  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines