From 75df5c171668f51a36dda7aaa0dde7781aff5e38 Mon Sep 17 00:00:00 2001 From: royjr Date: Sat, 22 Aug 2026 17:30:10 -0400 Subject: [PATCH] cleanup --- openpilot/selfdrive/ui/mici/onroad/hud_renderer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openpilot/selfdrive/ui/mici/onroad/hud_renderer.py b/openpilot/selfdrive/ui/mici/onroad/hud_renderer.py index 83d49e4024..c671253556 100644 --- a/openpilot/selfdrive/ui/mici/onroad/hud_renderer.py +++ b/openpilot/selfdrive/ui/mici/onroad/hud_renderer.py @@ -234,7 +234,7 @@ class HudRenderer(Widget): if loading: pct_text = f"{ui_state.usbgpu_load_progress}%" size = FONT_SIZES.max_speed - cell = measure_text_cached(self._font_bold, "0", size) # fixed digit cell so the number doesn't shift + cell = measure_text_cached(self._font_bold, "0", size) widths = [cell.x if c.isdigit() else measure_text_cached(self._font_bold, c, size).x for c in pct_text] x = pos.x - 8 - sum(widths) y = pos.y + (icon.height - cell.y) / 2