From 7b94b5e7c223c40596d9c2dd034faf77704cc6bb Mon Sep 17 00:00:00 2001 From: Murilo Miranda Date: Fri, 24 Jan 2020 06:27:07 -0300 Subject: [PATCH] Updating the drawCircle() function I've updated the definition of the drawCircle() function because the previous definition was not working properly. --- simpledisplay.d | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/simpledisplay.d b/simpledisplay.d index 127e419..0bf4c04 100644 --- a/simpledisplay.d +++ b/simpledisplay.d @@ -6604,10 +6604,9 @@ struct ScreenPainter { impl.drawArc(upperLeft.x, upperLeft.y, width, height, start, finish); } - //this function draws a circle using the drawArc() function above, it requires you to pass the point it - //will be drawn at as a Point struct and the radius as an int + //this function draws a circle with the drawEllipse() function above, it requires the upper left point and the radius void drawCircle(Point upperLeft, int radius) { - this.drawArc(upperLeft, radius, radius, 0, 0); + drawEllipse(upperLeft, Point(upperLeft.x + radius, upperLeft.y + radius)); } /// .