summaryrefslogtreecommitdiff
path: root/src/powder.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/powder.c')
-rw-r--r--src/powder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/powder.c b/src/powder.c
index db65303..8cdd84c 100644
--- a/src/powder.c
+++ b/src/powder.c
@@ -2794,7 +2794,7 @@ int InCurrentBrush(int i, int j, int rx, int ry)
switch(CURRENT_BRUSH)
{
case CIRCLE_BRUSH:
- return ((pow(i,2))/(pow(rx,2))+(pow(j,2))/(pow(ry,2))<=1);
+ return (pow(i,2)*pow(ry,2)+pow(j,2)*pow(rx,2)<=pow(rx,2)*pow(ry,2));
break;
case SQUARE_BRUSH:
return (i*j<=ry*rx);