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.2 by greg, Wed Oct 25 16:49:45 1989 UTC vs.
Revision 1.5 by greg, Mon Jan 8 15:07:30 1990 UTC

# Line 62 | Line 62 | char   *argv[];
62          if ((dev = dinit(argv[0], argv[3])) == NULL)
63                  quit(1);
64          putw(COM_RECVM, devout);                /* verify initialization */
65 +        fwrite(&dev->pixaspect, sizeof(dev->pixaspect), 1, devout);
66          putw(dev->xsiz, devout);
67          putw(dev->ysiz, devout);
68          fflush(devout);
# Line 107 | Line 108 | r_paintr()                             /* paint a rectangle */
108          xmax = getw(devin); ymax = getw(devin);
109          (*dev->paintr)(col, xmin, ymin, xmax, ymax);
110                                          /* check for input */
111 <        if (dev->inpready > notified) {
111 >        if (!notified && dev->inpready > 0) {
112 >                notified = 1;
113                  kill(getppid(), SIGIO);
112                notified = dev->inpready;
114          }
115   }
116  
# Line 176 | Line 177 | register FILE  *fp;
177          do
178                  putc(*s, fp);
179          while (*s++);
179 }
180
181
182 repaint(xmin, ymin, xmax, ymax)         /* repaint section of display */
183 int     xmin, ymin, xmax, ymax;
184 {
185        /* no can do! */
180   }
181  
182  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines