From 253647c008fb36ae6b5dd495a0c50ee8de6f5988 Mon Sep 17 00:00:00 2001 From: tTh Date: Mon, 26 Jun 2023 17:34:53 +0200 Subject: [PATCH] krkrkr --- Fonderie/glitches.c | 12 +++++++----- Fonderie/singlepass.c | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Fonderie/glitches.c b/Fonderie/glitches.c index 535d720..0b6132b 100644 --- a/Fonderie/glitches.c +++ b/Fonderie/glitches.c @@ -161,20 +161,22 @@ for (pass=0; passwidth%16) || (picture->height%16) ) { - fprintf(stderr, "%s: %d%d bad dims\n", __func__, + fprintf(stderr, "WARNING %s: %dx%d bad dims\n", __func__, picture->width, picture->height); - return -1; + // return -1; } -for (y=0; yheight; y+=16) { - for (x=0; xwidth; x+=16) { +for (y=16; yheight-16; y+=16) { + for (x=16; xwidth-16; x+=16) { if (percent < (rand()%100) ) { un_petit_flou_8x8(picture, x, y); un_petit_flou_8x8(picture, x+8, y); diff --git a/Fonderie/singlepass.c b/Fonderie/singlepass.c index fe729e3..5013977 100644 --- a/Fonderie/singlepass.c +++ b/Fonderie/singlepass.c @@ -39,7 +39,7 @@ fprintf(stderr, ">>> %s ( '%s' '%s' %d %d )\n", __func__, globber, destdir, fchain, outfmt); #endif -// filterstack_list(fchain, "Run the single pass"); +if (verbosity) filterstack_list(fchain, "Run the single pass"); (void)fimg_timer_set(0);