fix circle brush shape at some sizes

This commit is contained in:
jacob1 2013-05-13 19:07:59 -04:00
parent a5ae843553
commit e5cbcecdb9

View File

@ -29,10 +29,10 @@ public:
}
else
{
int yTop = ry, yBottom, i, j;
int yTop = ry+1, yBottom, i, j;
for (i = 0; i <= rx; i++)
{
while (pow(i-rx,2.0f)*pow(ry,2.0f) + pow(yTop-ry,2.0f)*pow(rx,2.0f) <= pow(rx,2.0f)*pow(ry,2.0f))
while (pow(i-rx,2.0)*pow(ry,2.0) + pow(yTop-ry,2.0)*pow(rx,2.0) <= pow(rx,2.0)*pow(ry,2.0))
yTop++;
yBottom = 2*ry - yTop;
for (int j = 0; j <= ry*2; j++)