Correct fillCircle function
This commit is contained in:
parent
9bd670be45
commit
e4e17b9af1
|
|
@ -1908,8 +1908,8 @@ void TFT_eSPI::fillCircle(int32_t x0, int32_t y0, int32_t r, uint32_t color)
|
||||||
while(x<r){
|
while(x<r){
|
||||||
|
|
||||||
if(p>=0) {
|
if(p>=0) {
|
||||||
drawFastHLine(x0 - x + 1, y0 + r, dx-1, color);
|
drawFastHLine(x0 - x, y0 + r, dx, color);
|
||||||
drawFastHLine(x0 - x + 1, y0 - r, dx-1, color);
|
drawFastHLine(x0 - x, y0 - r, dx, color);
|
||||||
dy-=2;
|
dy-=2;
|
||||||
p-=dy;
|
p-=dy;
|
||||||
r--;
|
r--;
|
||||||
|
|
@ -1928,7 +1928,6 @@ void TFT_eSPI::fillCircle(int32_t x0, int32_t y0, int32_t r, uint32_t color)
|
||||||
end_tft_write(); // Does nothing if Sprite class uses this function
|
end_tft_write(); // Does nothing if Sprite class uses this function
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/***************************************************************************************
|
/***************************************************************************************
|
||||||
** Function name: fillCircleHelper
|
** Function name: fillCircleHelper
|
||||||
** Description: Support function for fillRoundRect()
|
** Description: Support function for fillRoundRect()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue