mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-30 03:09:53 +02:00
fix circle brush shape at some sizes
This commit is contained in:
@@ -29,10 +29,10 @@ public:
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
int yTop = ry, yBottom, i, j;
|
int yTop = ry+1, yBottom, i, j;
|
||||||
for (i = 0; i <= rx; i++)
|
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++;
|
yTop++;
|
||||||
yBottom = 2*ry - yTop;
|
yBottom = 2*ry - yTop;
|
||||||
for (int j = 0; j <= ry*2; j++)
|
for (int j = 0; j <= ry*2; j++)
|
||||||
|
Reference in New Issue
Block a user