Update clock to be 70% max versus 80% to avoid unintended overlaps (#10516)

This commit is contained in:
Jason P
2026-06-08 16:01:02 -05:00
committed by Jonathan Bennett
parent 56a33a07f7
commit f98abe00f3
+4
View File
@@ -183,7 +183,11 @@ void drawDigitalClockFrame(OLEDDisplay *display, OLEDDisplayUiState *state, int1
static float segmentHeight = SEGMENT_HEIGHT * 0.75f; static float segmentHeight = SEGMENT_HEIGHT * 0.75f;
if (!scaleInitialized) { 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 screenwidth_target_ratio = 0.80f; // Target 80% of display width (adjustable)
#endif
float max_scale = 3.5f; // Safety limit to avoid runaway scaling float max_scale = 3.5f; // Safety limit to avoid runaway scaling
float step = 0.05f; // Step increment per iteration float step = 0.05f; // Step increment per iteration