mirror of
https://jihulab.com/mr-one/openpilot.git
synced 2026-10-27 13:03:42 +08:00
fix: draw_rectangle parameter - x,y,w,h,color (not Rect+color)
This commit is contained in:
@@ -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("这不是自动驾驶,请注意行车安全")
|
||||
|
||||
Reference in New Issue
Block a user