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

Comparing ray/src/rt/nwsdev.c (file contents):
Revision 1.1 by greg, Tue Jul 10 15:22:27 1990 UTC vs.
Revision 1.2 by greg, Wed Jul 18 21:54:07 1990 UTC

# Line 2 | Line 2
2   static char SCCSid[] = "$SunId$ LBL";
3   #endif
4  
5 #ifndef lint
6 static char sccsid[]="@(#)two.c";
7 #endif
5   /*
6 < * NeWS driver
6 > * NeWS driver, by Isaac Kwo
7   *
8   * July 1990
9   */
# Line 96 | Line 93 | float col[3];
93   int xmin,ymin,xmax,ymax;
94   {
95    int i;
96 +  float col2[3];
97    /* NeWS trashes the window if a float value less than 1/256 is sent
98       to it.  Therefore, weed out all such values first */
99    for(i=0;i<3;i++)
100     {
101 <    if(col[i]>1)col[i]=1;
102 <    col[i]=gamma[(int)(col[i]*256)];
101 >    col2[i]=col[i];
102 >    if(col2[i]>1)col2[i]=1;
103 >    col2[i]=gamma[(int)(col2[i]*256)];
104     }
105    box(xmin,ymin+textareaheight,xmax,ymax+textareaheight
106 <      ,col[0],col[1],col[2]);
106 >      ,col2[0],col2[1],col2[2]);
107   }
108  
109   static int

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines