From ea9997bd1dcdd75a2c2b6445c69d948026ae1970 Mon Sep 17 00:00:00 2001 From: mawei Date: Sun, 28 Jun 2026 17:14:23 +0800 Subject: [PATCH] fix: draw_rectangle parameter - x,y,w,h,color (not Rect+color) --- selfdrive/ui/widgets/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/ui/widgets/setup.py b/selfdrive/ui/widgets/setup.py index 98cdfdb33..1103a246a 100644 --- a/selfdrive/ui/widgets/setup.py +++ b/selfdrive/ui/widgets/setup.py @@ -61,7 +61,7 @@ class SetupWidget(Widget): # === Separator === sep_y = y_center + 5 sep_w = 280 - rl.draw_rectangle(rl.Rectangle(int(x_center - sep_w / 2), int(sep_y), sep_w, 2), SEPARATOR) + rl.draw_rectangle(int(x_center - sep_w / 2), int(sep_y), sep_w, 2, SEPARATOR) # === Bottom section: safety notice === warn = tr("这不是自动驾驶,请注意行车安全")