From b4c411d05474e2d1f37fa96f0e22442f0eabcefd Mon Sep 17 00:00:00 2001 From: Bodmer Date: Sat, 30 Jan 2021 22:54:23 +0000 Subject: [PATCH] Change radius to diameter --- TFT_eSPI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TFT_eSPI.cpp b/TFT_eSPI.cpp index 7d9e81f..142760a 100644 --- a/TFT_eSPI.cpp +++ b/TFT_eSPI.cpp @@ -2485,7 +2485,7 @@ float TFT_eSPI::wedgeLineDistance(float pax, float pay, float bax, float bay, fl void TFT_eSPI::drawSpot(float ax, float ay, float r, uint16_t fg_color, uint16_t bg_color) { // Filled circle can be created by the wide line function with length zero - drawWideLine( ax, ay, ax, ay, r, fg_color, bg_color); + drawWideLine( ax, ay, ax, ay, 2.0*r, fg_color, bg_color); } /*************************************************************************************** @@ -2496,7 +2496,7 @@ void TFT_eSPI::drawSpot(float ax, float ay, float r, uint16_t fg_color, uint16_t void TFT_eSPI::drawSpot(float ax, float ay, float r, uint16_t fg_color) { // Filled circle can be created by the wide line function with length zero - drawWideLine( ax, ay, ax, ay, r, fg_color); + drawWideLine( ax, ay, ax, ay, 2.0*r, fg_color); } /***************************************************************************************