From 8c0f55b7cb8f5b77298f20d7ce1a1f99dbd07ce3 Mon Sep 17 00:00:00 2001 From: tTh Date: Mon, 17 Jul 2023 07:44:39 +0200 Subject: [PATCH] *OUPS!* --- Fonderie/sfx.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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;