From efc69550ef0e077372a02859c356f2cd3d330454 Mon Sep 17 00:00:00 2001 From: HarukiToreda <116696711+HarukiToreda@users.noreply.github.com> Date: Tue, 1 Apr 2025 10:12:02 -0400 Subject: [PATCH] Corrected rounding --- src/graphics/Screen.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/graphics/Screen.cpp b/src/graphics/Screen.cpp index 9bdaefd8f..31a4171f3 100644 --- a/src/graphics/Screen.cpp +++ b/src/graphics/Screen.cpp @@ -1594,10 +1594,10 @@ void drawRoundedHighlight(OLEDDisplay *display, int16_t x, int16_t y, int16_t w, display->fillRect(x, y + r, r, h - 2 * r); display->fillRect(x + w - r, y + r, r, h - 2 * r); - // Rounded corners - display->fillCircle(x + r, y + r, r); // Top-left + // Rounded corners — visually balanced + display->fillCircle(x + r + 1, y + r, r); // Top-left display->fillCircle(x + w - r - 1, y + r, r); // Top-right - display->fillCircle(x + r, y + h - r - 1, r); // Bottom-left + display->fillCircle(x + r + 1, y + h - r - 1, r); // Bottom-left display->fillCircle(x + w - r - 1, y + h - r - 1, r); // Bottom-right } // h! Each node entry holds a reference to its info and how long ago it was heard from