Skip to content

Commit 6c8b093

Browse files
committed
create-alt-fillCircleHelper
1 parent 8730f95 commit 6c8b093

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

Adafruit_GFX.cpp

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -514,8 +514,8 @@ void Adafruit_GFX::drawCircle(int16_t x0, int16_t y0, int16_t r,
514514
@param x0 Center-point x coordinate
515515
@param y0 Center-point y coordinate
516516
@param r Radius of circle
517-
@param cornername Mask bit #1, #2, #4, and #8 to indicate which quarters of
518-
the circle we're doing
517+
@param cornername Mask bit #1, #2, #4, and #8 to indicate which quarters
518+
of the circle we're doing
519519
@param color 16-bit 5-6-5 Color to draw with
520520
*/
521521
/**************************************************************************/
@@ -578,8 +578,8 @@ void Adafruit_GFX::fillCircle(int16_t x0, int16_t y0, int16_t r,
578578
@param x0 Center-point x coordinate
579579
@param y0 Center-point y coordinate
580580
@param r Radius of circle
581-
@param corners Mask bits indicating which sides of the circle we are doing,
582-
left and/or right
581+
@param corners Mask bits indicating which sides of the circle we are
582+
doing, left and/or right
583583
@param delta Offset from center-point, used for round-rects
584584
@param color 16-bit 5-6-5 Color to fill with
585585
*/
@@ -635,12 +635,13 @@ void Adafruit_GFX::fillCircleHelper(int16_t x0, int16_t y0, int16_t r,
635635
@param r Radius of circle
636636
@param corners Mask bit #1, #2, #4, and #8 to indicate which quarters of
637637
the circle we're doing
638-
@param delta Offset from center-point. Elongates the horizontal face if desired.
638+
@param delta Offset from center-point. Elongates the horizontal face if
639+
desired.
639640
@param color 16-bit 5-6-5 Color to fill with
640641
*/
641642
/**************************************************************************/
642-
void Adafruit_GFX::fillCircleHelper(bool useLegacy, int16_t x0, int16_t y0, int16_t r,
643-
uint8_t corners, int16_t delta,
643+
void Adafruit_GFX::fillCircleHelper(bool useLegacy, int16_t x0, int16_t y0,
644+
int16_t r, uint8_t corners, int16_t delta,
644645
uint16_t color) {
645646

646647
int16_t f = 1 - r;
@@ -652,8 +653,8 @@ void Adafruit_GFX::fillCircleHelper(bool useLegacy, int16_t x0, int16_t y0, int1
652653
int16_t py = y;
653654

654655
if(useLegacy){
655-
fillCircleHelper(x0, y0, r, corners, delta, color);
656-
return;
656+
fillCircleHelper(x0, y0, r, corners, delta, color);
657+
return;
657658
}
658659

659660
if (corners & (0x2 | 0x1))

0 commit comments

Comments
 (0)