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 |
|
*/ |
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 |