From ef96d136d2e43c6f11c77125a73ca27227a719c0 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Fri, 3 Mar 2023 00:02:46 -0800 Subject: [PATCH] fix --- selfdrive/ui/qt/onroad.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/ui/qt/onroad.cc b/selfdrive/ui/qt/onroad.cc index 9d5b328553..cf4845d91d 100644 --- a/selfdrive/ui/qt/onroad.cc +++ b/selfdrive/ui/qt/onroad.cc @@ -549,8 +549,8 @@ void AnnotatedCameraWidget::drawLaneLines(QPainter &painter, const UIState *s) { float saturation = fmin(fabs(acceleration[i] * 1.5), 1); float lightness = interp1d(saturation, 0.0, 1.0, 0.95, 0.62); // lighter when grey float alpha = interp1d(lin_grad_point, 0.75 / 2., 0.75, 0.4, 0.0); // matches previous alpha fade - UNUSED(alpha); - UNUSED(lightness); + (void(alpha)); + (void(lightness)); // bg.setColorAt(lin_grad_point, QColor::fromHslF(path_hue / 360., saturation, lightness, alpha)); } double dt = millis_since_boot() - t;