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.40 by greg, Wed Nov 23 14:24:34 1994 UTC vs.
Revision 2.41 by greg, Wed Jan 25 10:53:02 1995 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1993 Regents of the University of California */
1 > /* Copyright (c) 1995 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 74 | Line 74 | int  xoff = 0;                         /* x image offset */
74   int  yoff = 0;                          /* y image offset */
75  
76   int  parent = 0;                        /* number of children, -1 if child */
77 + int  sequential = 0;                    /* display images in sequence */
78  
79   VIEW  ourview = STDVIEW;                /* image view parameters */
80   int  gotview = 0;                       /* got parameters from file */
# Line 159 | Line 160 | char  *argv[];
160                          case 'f':
161                                  fast = !fast;
162                                  break;
163 +                        case 's':
164 +                                sequential = !sequential;
165 +                                break;
166                          case 'e':
167                                  if (argv[i+1][0] != '+' && argv[i+1][0] != '-')
168                                          goto userr;
# Line 219 | Line 223 | char  *argv[];
223                  getevent();             /* main loop */
224   userr:
225          fprintf(stderr,
226 < "Usage: %s [-di disp][[-ge] spec][-b][-m][-d][-f][-c nclrs][-e +/-stops][-g gamcor] pic ..\n",
226 > "Usage: %s [-di disp][[-ge] spec][-b][-m][-d][-f][-c nclrs][-e +/-stops][-g gamcor][-s] pic ..\n",
227                          progname);
228          exit(1);
229   }
# Line 561 | Line 565 | getevent()                             /* process the next event */
565                  map_rcolors(ourras, wind);
566                  if (fast)
567                          make_rpixmap(ourras, wind);
568 <                if (parent < 0 & sigrecv == 0) {        /* notify parent */
568 >                if (!sequential & parent < 0 & sigrecv == 0) {
569                          kill(getppid(), SIGCONT);
570                          sigrecv--;
571                  }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines