Some progress on the gradiation rectangles. I messed up the vector calculation somehow. Is someone good at maths ?

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@301 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2008-10-22 19:56:30 +00:00
parent 08f0541f11
commit cef61562d0
5 changed files with 112 additions and 70 deletions

4
op_c.c
View File

@@ -560,9 +560,11 @@ void Cluster_Split(Cluster * c,Cluster * c1,Cluster * c2,int teinte,Table_occure
void Cluster_Calculer_teinte(Cluster * c,Table_occurence * to)
{
int cumulR,cumulV,cumulB;
int r,v,b,s=0;
int r,v,b;
int nbocc;
byte s=0;
cumulR=cumulV=cumulB=0;
for (r=c->rmin;r<=c->rmax;r++)
for (v=c->vmin;v<=c->vmax;v++)