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

Comparing ray/src/rt/x10.c (file contents):
Revision 2.1 by greg, Tue Nov 12 17:09:36 1991 UTC vs.
Revision 2.2 by greg, Wed Jun 24 13:32:31 1992 UTC

# Line 74 | Line 74 | struct driver *
74   x_init(name, id)                /* initialize driver */
75   char  *name, *id;
76   {
77 +        extern char  *getenv();
78 +        char  *gv;
79          char  defgeom[32];
80          OpaqueFrame  mainframe;
81  
# Line 86 | Line 88 | char  *name, *id;
88                  stderr_v("not enough colors\n");
89                  return(NULL);
90          }
91 <        make_gmap(GAMMA);                       /* make color map */
91 >                                /* make color map */
92 >        if ((gv = getenv("GAMMA")) != NULL)
93 >                make_gmap(atof(gv));
94 >        else
95 >                make_gmap(GAMMA);
96  
97          pickcursor = XCreateCursor(bcross_width, bcross_height,
98                          bcross_bits, bcross_mask_bits,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines