--- ray/src/rt/devmain.c 1989/10/25 16:49:45 1.2 +++ ray/src/rt/devmain.c 1990/01/08 13:38:18 1.4 @@ -32,7 +32,7 @@ int notified = 0; /* notified parent of input? */ char *progname; /* driver name */ -int r_clear(), r_paintr(), r_getcur(), r_comout(), r_comin(); +int r_clear(), r_paintr(), r_getcur(), r_comout(), r_comin(), r_mycomin(); int (*dev_func[NREQUESTS])() = { /* request handlers */ r_clear, r_paintr, @@ -64,6 +64,7 @@ char *argv[]; putw(COM_RECVM, devout); /* verify initialization */ putw(dev->xsiz, devout); putw(dev->ysiz, devout); + fwrite(dev->pixaspect, sizeof(dev->pixaspect), 1, devout); fflush(devout); /* loop on requests */ while ((com = getc(devin)) != EOF) { @@ -107,9 +108,9 @@ r_paintr() /* paint a rectangle */ xmax = getw(devin); ymax = getw(devin); (*dev->paintr)(col, xmin, ymin, xmax, ymax); /* check for input */ - if (dev->inpready > notified) { + if (!notified && dev->inpready > 0) { + notified = 1; kill(getppid(), SIGIO); - notified = dev->inpready; } } @@ -176,13 +177,6 @@ register FILE *fp; do putc(*s, fp); while (*s++); -} - - -repaint(xmin, ymin, xmax, ymax) /* repaint section of display */ -int xmin, ymin, xmax, ymax; -{ - /* no can do! */ }