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

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

# Line 37 | Line 37 | static char SCCSid[] = "$SunId$ LBL";
37  
38   #define  FONTNAME       "9x15"          /* text font we'll use */
39  
40 < #define  CTRL(c)        ('c'-'@')
40 > #define  CTRL(c)        ((c)-'@')
41  
42   #define  BORWIDTH       5               /* border width */
43   #define  BARHEIGHT      25              /* menu bar size */
# Line 367 | Line 367 | XKeyEvent  *ekey;
367                  return(0);
368          switch (*cp) {                  /* interpret command */
369          case 'q':
370 <        case CTRL(D):                           /* quit */
370 >        case CTRL('D'):                         /* quit */
371                  quit(0);
372          case '\n':
373          case '\r':
# Line 437 | Line 437 | XKeyEvent  *ekey;
437                  free_raster(ourras);
438                  getras();
439          /* fall through */
440 <        case CTRL(R):                           /* redraw */
441 <        case CTRL(L):
440 >        case CTRL('R'):                         /* redraw */
441 >        case CTRL('L'):
442                  unmap_rcolors(ourras);
443                  XClear(wind);
444                  return(redraw(0, 0, width, height));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines