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

Comparing ray/src/px/x11image.c (file contents):
Revision 2.2 by greg, Thu Dec 19 14:52:27 1991 UTC vs.
Revision 2.3 by greg, Mon Dec 23 23:20:09 1991 UTC

# Line 34 | Line 34 | static char SCCSid[] = "$SunId$ LBL";
34  
35   #define  FONTNAME       "8x13"          /* text font we'll use */
36  
37 < #define  CTRL(c)        ('c'-'@')
37 > #define  CTRL(c)        ((c)-'@')
38  
39   #define  BORWIDTH       5               /* border width */
40  
# Line 419 | Line 419 | XKeyPressedEvent  *ekey;
419          com = buf[0];
420          switch (com) {                  /* interpret command */
421          case 'q':
422 <        case CTRL(D):                           /* quit */
422 >        case CTRL('D'):                         /* quit */
423                  quit(0);
424          case '\n':
425          case '\r':
# Line 493 | Line 493 | XKeyPressedEvent  *ekey;
493                  free_raster(ourras);
494                  getras();
495          /* fall through */
496 <        case CTRL(R):                           /* redraw */
497 <        case CTRL(L):
496 >        case CTRL('R'):                         /* redraw */
497 >        case CTRL('L'):
498                  unmap_rcolors(ourras);
499                  XClearWindow(thedisplay, wind);
500                  map_rcolors(ourras, wind);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines