From b264cffb02aeaafe26c8ab4c58f6c9de7b356055 Mon Sep 17 00:00:00 2001 From: tTh Date: Tue, 16 Jul 2024 19:01:12 +0200 Subject: [PATCH] hide trace msg --- Lib/dither.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Lib/dither.c b/Lib/dither.c index 328cab2..73c5b3c 100644 --- a/Lib/dither.c +++ b/Lib/dither.c @@ -16,7 +16,9 @@ int Image_dither_Bayer_0(Image_Desc *s, Image_Desc *d, int uh) { int dx, dy, x, y, r, g, b; +#if DEBUG_LEVEL fprintf(stderr, ">>> %s ( %p %p %d )\n", __func__, s, d, uh); +#endif /* directement copie de la page 389 de "Bitmapped graphics" de Steve Rimmer. */ @@ -63,7 +65,9 @@ int Image_dither_crude(Image_Desc *s, Image_Desc *d, int uh) int x, y, r, g, b; int som; +#if DEBUG_LEVEL fprintf(stderr, ">>> %s ( %p %p %d )\n", __func__, s, d, uh); +#endif if (s != d) Image_clear(d, 0, 0, 0); @@ -105,14 +109,16 @@ return OLL_KORRECT; } /*::------------------------------------------------------------------::*/ /* - * ça ne marche pas très fort, ce truc... + * Il ne marche pas tres fort, ce truc... */ int Image_dither_2x2(Image_Desc *s, Image_Desc *d, int uh) { int x, y, xm, ym; int r, g, b, v; +#if DEBUG_LEVEL fprintf(stderr, ">>> %s ( %p %p %d )\n", __func__, s, d, uh); +#endif x = s->width; xm = (x&1) ? (x-1) : x; y = s->height; ym = (y&1) ? (y-1) : y; @@ -153,7 +159,9 @@ int Image_dither_seuil_random(Image_Desc *s, Image_Desc *d, int uh) int x, y, r, g, b; int foo; +#if DEBUG_LEVEL fprintf(stderr, ">>> %s ( %p %p %d )\n", __func__, s, d, uh); +#endif if ( (foo=Image_compare_desc(s, d)) ) { fprintf(stderr, "%s: images are differents %d\n", __func__, foo); @@ -192,7 +200,9 @@ int x, y, xa, xb, inc, errR, errG, errB; int r, g, b, dr, dg, db; int foo; +#if DEBUG_LEVEL fprintf(stderr, ">>> %s ( %p %p %d )\n", __func__, s, d, uh); +#endif if ( (foo=Image_compare_desc(s, d)) ) { fprintf(stderr, "%s: images are differents %d\n", __func__, foo);