Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 140866
Collapse All | Expand All

(-)utils.c.orig (-4 / +4 lines)
Lines 26-32 Link Here
26
/*
26
/*
27
 * HSI color system utilities
27
 * HSI color system utilities
28
 */
28
 */
29
static int trunc(double f)
29
static int truncate(double f)
30
{
30
{
31
	int i;
31
	int i;
32
32
Lines 44-52 Link Here
44
	Gv=1+S*sin(H);
44
	Gv=1+S*sin(H);
45
	Bv=1+S*sin(H+2*M_PI/3);
45
	Bv=1+S*sin(H+2*M_PI/3);
46
	T=255.999*I/2;
46
	T=255.999*I/2;
47
	*r=trunc(Rv*T);
47
	*r=truncate(Rv*T);
48
	*g=trunc(Gv*T);
48
	*g=truncate(Gv*T);
49
	*b=trunc(Bv*T);
49
	*b=truncate(Bv*T);
50
}
50
}
51
51
52
/*
52
/*

Return to bug 140866