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.13 by greg, Thu Nov 18 09:43:06 1993 UTC vs.
Revision 2.14 by greg, Mon Nov 22 11:33:02 1993 UTC

# Line 125 | Line 125 | char  *name, *id;
125                  ourwhite = WhitePixel(ourdisplay,ourscreen);
126          }
127                                          /* set gamma */
128 <        if ((gv = getenv("GAMMA")) != NULL)
128 >        if ((gv = XGetDefault(ourdisplay, "radiance", "gamma")) != NULL
129 >                        || (gv = getenv("GAMMA")) != NULL)
130                  make_gmap(atof(gv));
131          else
132                  make_gmap(GAMMA);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines