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 1.14 by greg, Mon Mar 12 11:08:48 1990 UTC vs.
Revision 1.15 by greg, Tue Jul 10 08:47:07 1990 UTC

# Line 100 | Line 100 | char  *name, *id;
100          } else if (nplanes <= 12) {
101                  if (!XMatchVisualInfo(ourdisplay,ourscreen,
102                                  nplanes,PseudoColor,&ourvinfo)) {
103 <                        stderr_v("PseudoColor not supported\n");
103 >                        stderr_v("PseudoColor server required\n");
104                          return(NULL);
105                  }
106          } else if (!XMatchVisualInfo(ourdisplay,ourscreen,
107 <                        nplanes,TrueColor,&ourvinfo)) {
108 <                stderr_v("TrueColor not supported\n");
107 >                        nplanes,TrueColor,&ourvinfo) &&
108 >                                                /* kludge for DirectColor */
109 >                        !XMatchVisualInfo(ourdisplay,ourscreen,
110 >                        nplanes,DirectColor,&ourvinfo)) {
111 >                stderr_v("TrueColor server required\n");
112                  return(NULL);
113          }
114          ourvisual = ourvinfo.visual;
# Line 225 | Line 228 | int  xmin, ymin, xmax, ymax;
228  
229          if (ncolors > 0)
230                  pixel = pixval[get_pixel(col, xnewcolr)];
231 <        else if (ourvisual->class == TrueColor)
231 >        else if (ourvisual->class != PseudoColor)
232                  pixel = true_pixel(col);
233          else
234                  return;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines