From 0f761d930b581d8ec89a67bedabb4e5543cc13db Mon Sep 17 00:00:00 2001 From: Jason P Date: Wed, 20 May 2026 11:34:30 -0500 Subject: [PATCH] Update clock to be 70% max versus 80% to avoid unintended overlaps (#10516) --- src/graphics/draw/ClockRenderer.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/graphics/draw/ClockRenderer.cpp b/src/graphics/draw/ClockRenderer.cpp index 66bbe1bfe..0ab647795 100644 --- a/src/graphics/draw/ClockRenderer.cpp +++ b/src/graphics/draw/ClockRenderer.cpp @@ -183,9 +183,13 @@ void drawDigitalClockFrame(OLEDDisplay *display, OLEDDisplayUiState *state, int1 static float segmentHeight = SEGMENT_HEIGHT * 0.75f; if (!scaleInitialized) { +#ifdef DISPLAY_FORCE_SMALL_FONTS + float screenwidth_target_ratio = 0.70f; // Target 70% of display width (adjustable) +#else float screenwidth_target_ratio = 0.80f; // Target 80% of display width (adjustable) - float max_scale = 3.5f; // Safety limit to avoid runaway scaling - float step = 0.05f; // Step increment per iteration +#endif + float max_scale = 3.5f; // Safety limit to avoid runaway scaling + float step = 0.05f; // Step increment per iteration float target_width = display->getWidth() * screenwidth_target_ratio; float target_height =