From e5cbcecdb9b796c41a4a6e582d4805f0fbc7351e Mon Sep 17 00:00:00 2001 From: jacob1 Date: Mon, 13 May 2013 19:07:59 -0400 Subject: [PATCH] fix circle brush shape at some sizes --- src/gui/game/EllipseBrush.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/game/EllipseBrush.h b/src/gui/game/EllipseBrush.h index ad28766d4..a71b107e6 100644 --- a/src/gui/game/EllipseBrush.h +++ b/src/gui/game/EllipseBrush.h @@ -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++)