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

Comparing ray/src/rt/rview.c (file contents):
Revision 2.10 by greg, Wed Feb 10 14:03:01 1993 UTC vs.
Revision 2.12 by greg, Tue Sep 7 16:11:12 1993 UTC

# Line 58 | Line 58 | char  *devname = dev_default;          /* output device name *
58  
59   struct driver  *dev = NULL;             /* driver functions */
60  
61 + char  rifname[128];                     /* rad input file name */
62 +
63   VIEW  oldview;                          /* previous view parameters */
64  
65   PNODE  ptrunk;                          /* the base of our image */
# Line 208 | Line 210 | again:
210                          goto commerr;
211                  lastview(args);
212                  break;
213 +        case 'V':                               /* save view */
214 +                if (badcom("V"))
215 +                        goto commerr;
216 +                saveview(args);
217 +                break;
218 +        case 'L':                               /* load view */
219 +                if (badcom("L"))
220 +                        goto commerr;
221 +                loadview(args);
222 +                break;
223          case 'e':                               /* exposure */
224                  if (badcom("exposure"))
225                          goto commerr;
# Line 315 | Line 327 | rsample()                      /* sample the image */
327           * difference, we subsample the super-pixels.  The testing process
328           * includes initialization of the next row.
329           */
330 <        xsiz = (((pframe.r-pframe.l)<<pdepth)+hresolu-1) / hresolu;
331 <        ysiz = (((pframe.u-pframe.d)<<pdepth)+vresolu-1) / vresolu;
330 >        xsiz = (((long)(pframe.r-pframe.l)<<pdepth)+hresolu-1) / hresolu;
331 >        ysiz = (((long)(pframe.u-pframe.d)<<pdepth)+vresolu-1) / vresolu;
332          rl = (RECT *)malloc(xsiz*sizeof(RECT));
333          if (rl == NULL)
334                  return;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines