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

Comparing ray/src/rt/x10.c (file contents):
Revision 1.19 by greg, Mon Jan 8 14:45:05 1990 UTC vs.
Revision 1.21 by greg, Wed Jan 10 10:04:30 1990 UTC

# Line 66 | Line 66 | static int  c_last = 0;                        /* last character in queue *
66  
67   extern char  *malloc(), *getcombuf();
68  
69 + extern char  *progname;
70 +
71   int  x_close(), x_clear(), x_paintr(), x_errout(),
72                  x_getcur(), x_comout(), x_comin();
73  
# Line 102 | Line 104 | char  *name, *id;
104          mainframe.background = BlackPixmap;
105          sprintf(defgeom, "=%dx%d+0+22", DisplayWidth()-(2*BORWIDTH),
106                          DisplayHeight()-(2*BORWIDTH+22));
107 <        gwind = XCreate("X10 driver", name, NULL, defgeom,
107 >        gwind = XCreate("X10 display driver", progname, NULL, defgeom,
108                          &mainframe, MINWIDTH, MINHEIGHT+COMHEIGHT);
109          if (gwind == 0) {
110                  stderr_v("can't create window\n");
# Line 377 | Line 379 | register XKeyPressedEvent  *ekey;
379          register char  *str;
380  
381          str = XLookupMapping(ekey, &n);
382 <        while (n-- > 0 && c_last < sizeof(c_queue))
382 >        while (n-- > 0 && c_last < sizeof(c_queue)) {
383                  c_queue[c_last++] = *str++;
384 <        x_driver.inpready = c_last - c_first;
384 >                x_driver.inpready++;
385 >        }
386   }
387  
388  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines