updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / effectv / trunc_collision.patch
blob34f0b41d94ccbc11845a4a0a2d0154e11201488f
1 --- utils.c.orig 2008-01-31 01:05:23.000000000 -0200
2 +++ utils.c 2008-01-31 01:06:07.000000000 -0200
3 @@ -26,7 +26,7 @@
4 /*
5 * HSI color system utilities
6 */
7 -static int trunc(double f)
8 +static int trunc_color(double f)
10 int i;
12 @@ -44,9 +44,9 @@
13 Gv=1+S*sin(H);
14 Bv=1+S*sin(H+2*M_PI/3);
15 T=255.999*I/2;
16 - *r=trunc(Rv*T);
17 - *g=trunc(Gv*T);
18 - *b=trunc(Bv*T);
19 + *r=trunc_color(Rv*T);
20 + *g=trunc_color(Gv*T);
21 + *b=trunc_color(Bv*T);