diff options
| author | jacksonmj <mj-pt@jacksonmj.co.uk> | 2012-03-29 09:55:58 (GMT) |
|---|---|---|
| committer | jacksonmj <mj-pt@jacksonmj.co.uk> | 2012-03-29 10:02:10 (GMT) |
| commit | 19968dbaab424f089afdbadaf7d19908f06c3370 (patch) | |
| tree | 9f0c56350a48e847fc8648ac77e8a2672f4b1b35 /src | |
| parent | 00839a3b145589b40cc12e391d086813e43e7999 (diff) | |
| download | powder-19968dbaab424f089afdbadaf7d19908f06c3370.zip powder-19968dbaab424f089afdbadaf7d19908f06c3370.tar.gz | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/powder.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/powder.c b/src/powder.c index bb0da71..e9ae42b 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; } } |
