diff --git a/src/SpeeduinoGL.cpp b/src/SpeeduinoGL.cpp index cadb246..a19bf5a 100644 --- a/src/SpeeduinoGL.cpp +++ b/src/SpeeduinoGL.cpp @@ -156,7 +156,7 @@ uint32_t ResH = 800; float height = sqrt(RadiusTo2 - pow(RadiusPos, 2)); - uint16_t PointerCoorInt = floor(Centre.h - height + 1); + uint16_t PointerCoorInt = ceil(Centre.h - height); uint16_t PointerEndInt = ceil(Centre.h + height);