From e4e17b9af1a0432d7c7cfc90b19364f371963c73 Mon Sep 17 00:00:00 2001 From: Bodmer Date: Mon, 19 Oct 2020 16:21:00 +0100 Subject: [PATCH] Correct fillCircle function --- TFT_eSPI.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/TFT_eSPI.cpp b/TFT_eSPI.cpp index 1df1c7e..46b240c 100644 --- a/TFT_eSPI.cpp +++ b/TFT_eSPI.cpp @@ -1908,8 +1908,8 @@ void TFT_eSPI::fillCircle(int32_t x0, int32_t y0, int32_t r, uint32_t color) while(x=0) { - drawFastHLine(x0 - x + 1, y0 + r, dx-1, color); - drawFastHLine(x0 - x + 1, y0 - r, dx-1, color); + drawFastHLine(x0 - x, y0 + r, dx, color); + drawFastHLine(x0 - x, y0 - r, dx, color); dy-=2; p-=dy; 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 } - /*************************************************************************************** ** Function name: fillCircleHelper ** Description: Support function for fillRoundRect()