diff --git a/divers.c b/divers.c index abd3a706..069ce1ab 100644 --- a/divers.c +++ b/divers.c @@ -525,8 +525,7 @@ void Copier_image_dans_brosse(short Debut_X,short Debut_Y,short Brosse_Largeur,s byte Lit_pixel_dans_ecran_feedback (word X,word Y) { - UNIMPLEMENTED - return 0; + return *(FX_Feedback_Ecran+Y*Principal_Largeur_image+X); } dword Round_div(dword Numerateur,dword Diviseur) diff --git a/op_c.c b/op_c.c index 0ce37679..d7b43481 100644 --- a/op_c.c +++ b/op_c.c @@ -146,8 +146,6 @@ byte TC_Get(Table_conversion * t,int r,int v,int b) // On recherche la couleur la plus proche dans la table de conversion indice=(r<dec_r) | (v<dec_v) | (b<dec_b); - if(r!=0 && v != 0 && b != 0) - printf("%d %d %d %d\n",indice,r,v,b); return t->table[indice]; } @@ -266,6 +264,11 @@ void TO_Compter_occurences(Table_occurence * t,Bitmap24B image,int taille) Bitmap24B ptr; int indice; + DEBUG("reduction",t->red_r); + DEBUG("decalage rouge",t->dec_r); + DEBUG("decalage vert",t->dec_v); + DEBUG("decalage bleu",t->dec_b); + for (indice=taille,ptr=image;indice>0;indice--,ptr++) TO_Inc(t,ptr->R,ptr->V,ptr->B); }