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.3 by greg, Thu Dec 19 14:54:46 1991 UTC vs.
Revision 2.6 by greg, Thu Jan 16 12:05:26 1992 UTC

# Line 38 | Line 38 | int  vspretest = 128;                  /* virtual source pretest dens
38   int  directinvis = 0;                   /* sources invisible? */
39   double  srcsizerat = 0.;                /* maximum ratio source size/dist. */
40  
41 + double  specthresh = .3;                /* specular sampling threshold */
42 + double  specjitter = 1.;                /* specular sampling jitter */
43 +
44   int  maxdepth = 4;                      /* maximum recursion depth */
45   double  minweight = 1e-2;               /* minimum ray weight */
46  
# Line 65 | Line 68 | static char  *reserve_mem = NULL;      /* pre-allocated res
68  
69   #define RESERVE_AMT     32768           /* amount of memory to reserve */
70  
71 < #define  CTRL(c)        ('c'-'@')
71 > #define  CTRL(c)        ((c)-'@')
72  
73  
74   quit(code)                      /* quit program */
# Line 248 | Line 251 | again:
251                          goto commerr;
252                  getpivot(args);
253                  break;
254 <        case CTRL(R):                           /* redraw */
254 >        case CTRL('R'):                         /* redraw */
255                  redraw();
256                  break;
257          case 'w':                               /* write */
# Line 260 | Line 263 | again:
263                  if (badcom("quit"))
264                          goto commerr;
265                  quit(0);
266 <        case CTRL(C):                           /* interrupt */
266 >        case CTRL('C'):                         /* interrupt */
267                  goto again;
268   #ifdef  SIGTSTP
269 <        case CTRL(Z):                           /* stop */
269 >        case CTRL('Z'):                         /* stop */
270                  devclose();
271                  kill(0, SIGTSTP);
272                  /* pc stops here */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines