diff --git a/Fonderie/sfx.c b/Fonderie/sfx.c index 196e3b1..6cfd82f 100644 --- a/Fonderie/sfx.c +++ b/Fonderie/sfx.c @@ -24,6 +24,9 @@ extern int verbosity; /* -------------------------------------------------------------- */ /* * nouveau Sun Jul 16 07:37:22 UTC 2023 + * + * may-be this can be an on-place function ? + * */ int poke_sup_rb_g(FloatImg *src, FloatImg *dst) { @@ -46,7 +49,7 @@ if (verbosity > 1) for (idx=0; idxR[idx] = src->R[idx]; dst->B[idx] = src->B[idx]; - if (src->R[idx] > src->B[idx]) + if (src->R[idx] < src->B[idx]) dst->G[idx] = src->R[idx]; else dst->G[idx] = src->B[idx];