Skip to content

Commit 54b6b10

Browse files
Fixed
Co-Authored-By: per1234 <accounts@perglass.com>
1 parent 15b9ef2 commit 54b6b10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ArduinoGraphics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ void ArduinoGraphics::ellipse(int x, int y, int width, int height)
197197
int x2 = x1 + r1 - 1;
198198

199199
for (x = x1; x <= x2; x++) {
200-
y2 = (int) (y1 + sqrt((1 - ((x * x)/(r1 * r1)))) * r2);
200+
int y2 = (int) (y1 + sqrt((1 - ((x * x)/(r1 * r1)))) * r2);
201201
for (y = y1; y <= y2; y++) {
202202
if ((y == y2) && _stroke) {
203203
// stroke

0 commit comments

Comments
 (0)