From 7f4ac3b39b4b615a2d889e17f51a830c645d7180 Mon Sep 17 00:00:00 2001 From: tonton th Date: Thu, 14 Jan 2021 19:06:09 +0100 Subject: [PATCH] cosmetic --- Fonderie/sfx.c | 7 ++++--- Fonderie/singlepass.c | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Fonderie/sfx.c b/Fonderie/sfx.c index 8d4b920..e193cd7 100644 --- a/Fonderie/sfx.c +++ b/Fonderie/sfx.c @@ -48,11 +48,12 @@ return -1; /* nouveau du premier dimanche de 2020 'nextgen' */ static int pixel_trinitron(FloatImg *pimg, int pos[4], float *fvals) { -int x, y, off; +int x, y, pline, off; for (y=pos[1]; ywidth) + x; + pline = y*pimg->width; + for (x=pos[0]+2; xR[off] = fvals[0]; pimg->G[off] = fvals[1]; pimg->B[off] = fvals[2]; diff --git a/Fonderie/singlepass.c b/Fonderie/singlepass.c index c7ddbc0..9d03e4b 100644 --- a/Fonderie/singlepass.c +++ b/Fonderie/singlepass.c @@ -104,7 +104,8 @@ fimg_destroy(&image); single_print_state("end of run :)", 0); elapsed = fimg_timer_get(0); -fprintf(stderr, " %d frames, elapsed %.3f s, %.3f fps\n", +fprintf(stderr, "%s: %d frames, elapsed %.3f s, %.3f fps\n", + __func__, globbuf.gl_pathc, elapsed, (double)globbuf.gl_pathc/elapsed);