mirror of
https://github.com/Bodmer/TFT_eSPI.git
synced 2025-08-07 14:44:43 +02:00
Correct fillCircle function
This commit is contained in:
@@ -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()
|
||||||
|
Reference in New Issue
Block a user