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

Comparing ray/src/util/rad.c (file contents):
Revision 2.30 by greg, Thu Nov 11 10:20:06 1993 UTC vs.
Revision 2.34 by greg, Thu Nov 18 13:28:30 1993 UTC

# Line 252 | Line 252 | setvariable(ass)               /* assign variable according to stri
252   register char   *ass;
253   {
254          char    varname[32];
255        char    varval[512];
255          int     n;
256          register char   *cp;
257          register VARIABLE       *vp;
# Line 672 | Line 671 | oconv()                                /* run oconv and mkillum if necessary */
671                          unlink(vval(OCTREE));
672                          exit(1);
673                  }
674 <                octreedate = time(0);
674 >                octreedate = time((unsigned long *)NULL);
675          }
676          if (oct1name == vval(OCTREE))           /* no mkillum? */
677                  oct1date = octreedate > matdate ? octreedate : matdate;
# Line 698 | Line 697 | oconv()                                /* run oconv and mkillum if necessary */
697                          unlink(oct0name);
698                          exit(1);
699                  }
700 <                oct0date = time(0);
700 >                oct0date = time((unsigned long *)NULL);
701          }
702          mkillumopts(mkopts);                    /* build mkillum command */
703          mktemp(illumtmp);
# Line 726 | Line 725 | oconv()                                /* run oconv and mkillum if necessary */
725                  unlink(oct1name);
726                  exit(1);
727          }
728 <        oct1date = time(0);
728 >        oct1date = time((unsigned long *)NULL);
729          rmfile(illumtmp);
730   }
731  
# Line 804 | Line 803 | char   *op;
803                  medqopts(op);
804                  break;
805          case HIGH:
806 <                lowqopts(op);
806 >                hiqopts(op);
807                  break;
808          }
809   }
# Line 1317 | Line 1316 | char   *opts;
1316                                          /* get pfilt options */
1317          pfiltopts(pfopts);
1318                                          /* get resolution, reporting */
1319 <        mult = vscale(QUALITY)+1;
1319 >        switch (vscale(QUALITY)) {
1320 >        case LOW:
1321 >                mult = 1;
1322 >                break;
1323 >        case MEDIUM:
1324 >                mult = 2;
1325 >                break;
1326 >        case HIGH:
1327 >                mult = 3;
1328 >                break;
1329 >        }
1330          {
1331                  int     xres, yres;
1332                  double  aspect;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines