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

Comparing ray/src/rt/x11.c (file contents):
Revision 2.20 by greg, Mon Oct 3 12:58:58 1994 UTC vs.
Revision 2.21 by greg, Wed Oct 26 10:04:15 1994 UTC

# Line 76 | Line 76 | static Colormap ourmap = 0;            /* our color map */
76  
77   static int  inpcheck;                   /* whence to check input */
78  
79 < extern char  *malloc(), *getcombuf();
79 > extern char  *malloc();
80  
81   static int  x11_close(), x11_clear(), x11_paintr(), x11_errout(),
82                  x11_getcur(), x11_comout(), x11_comin(), x11_flush();
# Line 312 | Line 312 | x11_flush()                    /* flush output */
312                  n = read(fileno(stdin), buf, sizeof(buf)-1);
313                  if (n > 0) {
314                          buf[n] = '\0';
315 <                        strcpy(getcombuf(&x11_driver), buf);
315 >                        tocombuf(buf, &x11_driver);
316                  }
317          }
318   }
# Line 576 | Line 576 | static
576   fixwindow(eexp)                         /* repair damage to window */
577   register XExposeEvent  *eexp;
578   {
579 +        char  buf[80];
580 +
581          if (eexp->window == gwind) {
582 <                sprintf(getcombuf(&x11_driver), "repaint %d %d %d %d\n",
582 >                sprintf(buf, "repaint %d %d %d %d\n",
583                          eexp->x, gheight - eexp->y - eexp->height,
584                          eexp->x + eexp->width, gheight - eexp->y);
585 +                tocombuf(buf, &x11_driver);
586          } else if (eexp->window == comline->w) {
587                  if (eexp->count == 0)
588                          xt_redraw(comline);
# Line 599 | Line 602 | register XConfigureEvent  *ersz;
602          x11_driver.xsiz = gwidth < MINWIDTH ? MINWIDTH : gwidth;
603          x11_driver.ysiz = gheight < MINHEIGHT ? MINHEIGHT : gheight;
604  
605 <        strcpy(getcombuf(&x11_driver), "new\n");
605 >        tocombuf("new\n", &x11_driver);
606   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines