Commit e4e17b9a authored by Bodmer's avatar Bodmer

Correct fillCircle function

parent 9bd670be
...@@ -1908,8 +1908,8 @@ void TFT_eSPI::fillCircle(int32_t x0, int32_t y0, int32_t r, uint32_t color) ...@@ -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) ...@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment