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

Comparing ray/src/rt/x11.c (file contents):
Revision 2.30 by greg, Tue Feb 25 02:47:23 2003 UTC vs.
Revision 2.31 by schorsch, Mon Jul 21 22:30:19 2003 UTC

# Line 251 | Line 251 | int  xres, yres;
251          }
252          XClearWindow(ourdisplay, gwind);
253                                                  /* reinitialize color table */
254 <        if (ourvinfo.class == PseudoColor || ourvinfo.class == GrayScale)
254 >        if (ourvinfo.class == PseudoColor || ourvinfo.class == GrayScale) {
255                  if (getpixels() == 0)
256                          eputs("cannot allocate colors\n");
257                  else
258                          new_ctab(ncolors);
259 +        }
260                                                  /* get new command line */
261          if (comline != NULL)
262                  xt_close(comline);
# Line 560 | Line 561 | getevent()                     /* get next event */
561                  break;
562          case MapNotify:
563                  if (ourvinfo.class == PseudoColor ||
564 <                                ourvinfo.class == GrayScale)
564 >                                ourvinfo.class == GrayScale) {
565                          if (getpixels() == 0)
566                                  eputs("cannot allocate colors\n");
567                          else
568                                  new_ctab(ncolors);
569 +                }
570                  mapped = 1;
571                  break;
572          case Expose:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines