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.
This commit is contained in:
jacksonmj 2012-03-29 10:55:58 +01:00
parent 00839a3b14
commit 19968dbaab

View File

@ -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;
}
}