From 201fac661543518f96ba58d674c726885e87e2ad Mon Sep 17 00:00:00 2001 From: Benjamin <88098139+Bexin3@users.noreply.github.com> Date: Mon, 8 Jan 2024 19:06:30 +0100 Subject: [PATCH] Update SpeeduinoGL.cpp --- src/SpeeduinoGL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);