diff --git a/Fonderie/sfx.c b/Fonderie/sfx.c index 48025c7..196e3b1 100644 --- a/Fonderie/sfx.c +++ b/Fonderie/sfx.c @@ -40,15 +40,16 @@ if ( (foo=fimg_images_not_compatible(src, dst)) ) } nbpix = src->width * src->height; -fprintf(stderr, "%s work on %d pixels\n", __func__, nbpix); +if (verbosity > 1) + fprintf(stderr, "%s work on %d pixels\n", __func__, nbpix); for (idx=0; idxR[idx] = src->R[idx]; dst->B[idx] = src->B[idx]; - if (dst->R[idx] > dst->B[idx]) - dst->G[idx] = dst->R[idx]; + if (src->R[idx] > src->B[idx]) + dst->G[idx] = src->R[idx]; else - dst->G[idx] = dst->B[idx]; + dst->G[idx] = src->B[idx]; } return 0;