From 027ffd4bf5089e53f58cfa332672be2d759cfcc5 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Tue, 12 Aug 2008 16:52:20 +0000 Subject: [PATCH] Smoothing, QuickShade. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@117 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- divers.c | 3 +-- op_c.c | 7 +++++-- 2 files changed, 6 insertions(+), 4 deletions(-) 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); }