mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-09-04 05:53:42 +08:00
lint again
This commit is contained in:
@@ -238,7 +238,7 @@ class HudRenderer(Widget):
|
||||
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
|
||||
for c, w in zip(pct_text, widths):
|
||||
for c, w in zip(pct_text, widths, strict=True):
|
||||
glyph = measure_text_cached(self._font_bold, c, size).x
|
||||
rl.draw_text_ex(self._font_bold, c, rl.Vector2(x + (w - glyph) / 2, y), size, 0, rl.WHITE)
|
||||
x += w
|
||||
|
||||
Reference in New Issue
Block a user