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.7 by greg, Tue Jan 30 11:37:52 1990 UTC vs.
Revision 1.8 by greg, Thu Feb 22 11:46:24 1990 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
25   struct driver   *dev = NULL;                    /* output device */
26  
27   FILE    *devin, *devout;                        /* communications channels */
# Line 32 | Line 30 | int    notified = 0;                           /* notified parent of input? */
30  
31   char    *progname;                              /* driver name */
32  
33 < int     r_clear(), r_paintr(), r_getcur(), r_comout(), r_comin();
33 > int     r_clear(), r_paintr(), r_getcur(), r_comout(), r_comin(), r_flush();
34  
35   int     (*dev_func[NREQUESTS])() = {            /* request handlers */
36                  r_clear, r_paintr,
37 <                r_getcur, r_comout, r_comin
37 >                r_getcur, r_comout,
38 >                r_comin, r_flush
39          };
40  
41  
# Line 102 | Line 101 | r_paintr()                             /* paint a rectangle */
101          COLOR   col;
102          int     xmin, ymin, xmax, ymax;
103  
105        nrays += 5;                     /* pretend */
104          fread((char *)col, sizeof(COLOR), 1, devin);
105          xmin = getw(devin); ymin = getw(devin);
106          xmax = getw(devin); ymax = getw(devin);
# Line 112 | Line 110 | r_paintr()                             /* paint a rectangle */
110                  notified = 1;
111                  kill(getppid(), SIGIO);
112          }
113 + }
114 +
115 +
116 + r_flush()                               /* flush output */
117 + {
118 +        if (dev->flush != NULL)
119 +                (*dev->flush)();
120   }
121  
122  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines