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

Comparing ray/src/px/ximage.c (file contents):
Revision 1.12 by greg, Fri Oct 20 20:36:10 1989 UTC vs.
Revision 1.13 by greg, Mon Oct 23 09:10:22 1989 UTC

# Line 144 | Line 144 | char  *argv[];
144          if (fgetresolu(&xmax, &ymax, fin) != (YMAJOR|YDECR))
145                  quiterr("bad picture size");
146                                  /* set view parameters */
147 <        if (gotview)
147 >        if (gotview) {
148 >                ourview.hresolu = xmax;
149 >                ourview.vresolu = ymax;
150                  if (setview(&ourview) != NULL)
151                          gotview = 0;
152 <
152 >        }
153          if ((scanline = (COLR *)malloc(xmax*sizeof(COLR))) == NULL)
154                  quiterr("out of memory");
155  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines