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

Comparing ray/src/rt/devmain.c (file contents):
Revision 1.1 by greg, Wed Oct 25 15:37:42 1989 UTC vs.
Revision 1.2 by greg, Wed Oct 25 16:49:45 1989 UTC

# Line 22 | Line 22 | static char SCCSid[] = "$SunId$ LBL";
22  
23   int     (*wrnvec)(), (*errvec)(), (*cmdvec)();  /* error vectors, unused */
24  
25 + long    nrays = 0;                              /* fake it */
26 +
27   struct driver   *dev = NULL;                    /* output device */
28  
29   FILE    *devin, *devout;                        /* communications channels */
# Line 57 | Line 59 | char   *argv[];
59                  quit(1);
60          }
61                                                  /* open device */
62 <        if ((dev = dinit(argv[0], argv[3])) == NULL) {
61 <                stderr_v("initialization failure\n");
62 >        if ((dev = dinit(argv[0], argv[3])) == NULL)
63                  quit(1);
63        }
64          putw(COM_RECVM, devout);                /* verify initialization */
65          putw(dev->xsiz, devout);
66          putw(dev->ysiz, devout);
# Line 101 | Line 101 | r_paintr()                             /* paint a rectangle */
101          COLOR   col;
102          int     xmin, ymin, xmax, ymax;
103  
104 +        nrays += 5;                     /* pretend */
105          fread(col, sizeof(COLOR), 1, devin);
106          xmin = getw(devin); ymin = getw(devin);
107          xmax = getw(devin); ymax = getw(devin);
# Line 181 | Line 182 | register FILE  *fp;
182   repaint(xmin, ymin, xmax, ymax)         /* repaint section of display */
183   int     xmin, ymin, xmax, ymax;
184   {
185 <        stderr_v("repaint called!\n");          /* no can do! */
185 >        /* no can do! */
186   }
187  
188  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines