diff --git a/Fonderie/glitches.c b/Fonderie/glitches.c index a99d18d9..15a3af6b 100644 --- a/Fonderie/glitches.c +++ b/Fonderie/glitches.c @@ -26,10 +26,10 @@ if (verbosity > 1) { offset = pvictime->width * line; -for (xpos=offset; xposwidth; xpos++) { - pvictime->R[offset] = fval; - pvictime->G[offset] = 0.0; - pvictime->B[offset] = fval; +for (xpos=0; xposwidth; xpos++) { + pvictime->R[offset+xpos] = fval; + pvictime->G[offset+xpos] = 0.0; + pvictime->B[offset+xpos] = fval; } return 0;