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.63 by schorsch, Mon Jul 21 22:30:19 2003 UTC vs.
Revision 2.64 by schorsch, Sun Jul 27 22:12:03 2003 UTC

# Line 384 | Line 384 | char  *err;
384          register int  es;
385          int  cs;
386  
387 <        if (es = err != NULL)
387 >        if ( (es = err != NULL) )
388                  fprintf(stderr, "%s: %s: %s\n", progname,
389                                  fname==NULL?"<stdin>":fname, err);
390          if (thedisplay != NULL)
391                  XCloseDisplay(thedisplay);
392 <        if (parent < 0 & sigrecv == 0)
392 >        if ((parent < 0) & (sigrecv == 0))
393                  kill(getppid(), SIGCONT);
394          while (parent > 0 && wait(&cs) != -1) { /* wait for any children */
395                  if (es == 0)
# Line 537 | Line 537 | getras()                               /* get raster file */
537                  if (ourras == NULL)
538                          goto fail;
539                  getmono();
540 <        } else if (ourvis.class == TrueColor | ourvis.class == DirectColor) {
540 >        } else if ((ourvis.class == TrueColor) | (ourvis.class == DirectColor)) {
541                  int  datsiz = ourvis.depth>16 ? sizeof(int32) : sizeof(int16);
542                  ourdata = (unsigned char *)malloc(datsiz*xmax*ymax);
543                  if (ourdata == NULL)
# Line 585 | Line 585 | getevent()                             /* process the next event */
585                  map_rcolors(ourras, wind);
586                  if (fast)
587                          make_rpixmap(ourras, wind);
588 <                if (!sequential & parent < 0 & sigrecv == 0) {
588 >                if ((!sequential) & (parent < 0) & (sigrecv == 0)) {
589                          kill(getppid(), SIGCONT);
590                          sigrecv--;
591                  }
# Line 794 | Line 794 | XKeyPressedEvent  *ekey;
794                  free_rpixmap(ourras);
795                  return(0);
796          case '0':                               /* recenter origin */
797 <                if (xoff == 0 & yoff == 0)
797 >                if ((xoff == 0) & (yoff == 0))
798                          return(0);
799                  xoff = yoff = 0;
800                  XClearWindow(thedisplay, wind);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines