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 1.4 by greg, Tue Jun 13 10:57:49 1989 UTC vs.
Revision 1.7 by greg, Wed Oct 25 15:37:19 1989 UTC

# Line 36 | Line 36 | double  minweight = 1e-2;              /* minimum ray weight */
36  
37   COLOR  ambval = BLKCOLOR;               /* ambient value */
38   double  ambacc = 0.2;                   /* ambient accuracy */
39 < int  ambres = 64;                       /* ambient resolution */
39 > int  ambres = 8;                        /* ambient resolution */
40   int  ambdiv = 32;                       /* ambient divisions */
41   int  ambssamp = 0;                      /* ambient super-samples */
42   int  ambounce = 0;                      /* ambient bounces */
# Line 68 | Line 68 | int  code;
68   devopen(dname)                          /* open device driver */
69   char  *dname;
70   {
71 <        extern char  *progname;
72 <        char  *devargv[3];
71 >        extern char  *progname, *octname;
72 >        char  *id;
73          register int  i;
74 +
75 +        id = octname!=NULL ? octname : progname;
76                                                  /* check device table */
77          for (i = 0; devtable[i].name; i++)
78                  if (!strcmp(dname, devtable[i].name))
79 <                        if ((dev = (*devtable[i].init)(progname)) == NULL) {
79 >                        if ((dev = (*devtable[i].init)(dname, id)) == NULL) {
80                                  sprintf(errmsg, "cannot initialize %s", dname);
81                                  error(USER, errmsg);
82                          } else
83                                  return;
84                                                  /* not there, try exec */
85 <        devargv[0] = dname;
84 <        devargv[1] = progname;
85 <        devargv[2] = NULL;
86 <        if ((dev = comm_init(devargv)) == NULL) {
85 >        if ((dev = comm_init(dname, id)) == NULL) {
86                  sprintf(errmsg, "cannot start device \"%s\"", dname);
87                  error(USER, errmsg);
88          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines