From 19968dbaab424f089afdbadaf7d19908f06c3370 Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Thu, 29 Mar 2012 10:55:58 +0100 Subject: [PATCH] Brush fixes Heat tool was heating a vertical line in the middle of the brush twice. When drawing a vertical line with the triangle brush, it was one pixel too thin. --- src/powder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/powder.c b/src/powder.c index bb0da71e4..e9ae42b20 100644 --- a/src/powder.c +++ b/src/powder.c @@ -3082,7 +3082,7 @@ int create_parts(int x, int y, int rx, int ry, int c, int flags, int fill) { int tempy = y, i, j, jmax, oldy; if (CURRENT_BRUSH == TRI_BRUSH) - tempy = y + ry - 1; + tempy = y + ry; for (i = x - rx; i <= x; i++) { oldy = tempy; while (InCurrentBrush(i-x,tempy-y,rx,ry)) @@ -3096,7 +3096,7 @@ int create_parts(int x, int y, int rx, int ry, int c, int flags, int fill) for (j = tempy; j <= jmax; j++) { if (create_parts2(fn,i,j,c,rx,ry,flags)) f = 1; - if (create_parts2(fn,2*x-i,j,c,rx,ry,flags)) + if (i!=x && create_parts2(fn,2*x-i,j,c,rx,ry,flags)) f = 1; } }