From 144e388a1a02d3c40a21129a4cd7520a75ce5bfb Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 17 May 2024 14:19:00 -0500 Subject: [PATCH] wip --- 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 73b34e9..f16a6b4 100755 --- a/selfdrive/ui/qt/onroad.cc +++ b/selfdrive/ui/qt/onroad.cc @@ -441,7 +441,7 @@ void AnnotatedCameraWidget::drawHud(QPainter &p) { p.restore(); if (!scene.hide_max_speed) { - drawSpeedWidget (p, 60, 45, const QString("MAX"), const QString("33"), const QColor(0xff, 0xff, 0xff)); + drawSpeedWidget(p, 60, 45, QString("MAX"), QString("33"), QColor(0xff, 0xff, 0xff)); } // Draw FrogPilot widgets @@ -522,7 +522,7 @@ void AnnotatedCameraWidget::drawSpeedWidget(QPainter &p, int &x, int &y, const Q int bottom_radius = has_eu_speed_limit ? 100 : 32; QRect set_speed_rect(QPoint(x + (default_size.width() - set_speed_size.width()) / 2, y), set_speed_size); - p.setPen(QPen(color), 10)); + p.setPen(QPen(colorSpeed), 10)); p.setBrush(blackColor(166)); drawRoundedRect(p, set_speed_rect, top_radius, top_radius, bottom_radius, bottom_radius);