From 3743a156732d3983c6629230b9d01c8e2768ed96 Mon Sep 17 00:00:00 2001 From: Pere Pujal i Carabantes Date: Wed, 3 May 2023 20:41:34 +0200 Subject: [PATCH] printf -> DEBUG_PRINTF Shapes tool output filled my terminal. --- src/tuxpaint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 9d9d858d0..53bf5a809 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -15359,7 +15359,7 @@ static void do_shape(int sx, int sy, int nx, int ny, int rotn, int use_brush) x2 = (cos(a2) * (float)rx); y2 = (-sin(a2) * (float)ry); - printf("side=%d, a1=%f, a2=%f -- (%f,%f) -> (%f,%f)\n", side, a1, a2, x1, y1, x2, y2); + DEBUG_PRINTF("side=%d, a1=%f, a2=%f -- (%f,%f) -> (%f,%f)\n", side, a1, a2, x1, y1, x2, y2); xv = (cos((a1 + a2) / 2.0) * (float)rx * (float)shape_valley[cur_shape]) / 100.0; yv = (-sin((a1 + a2) / 2.0) * (float)ry * (float)shape_valley[cur_shape]) / 100.0;