From e25b54a1c354356a4acdd4bee4a596cdde0e0ae3 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 17 May 2024 14:20:31 -0500 Subject: [PATCH] wip --- selfdrive/ui/qt/onroad.cc | 2 +- selfdrive/ui/qt/onroad.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/ui/qt/onroad.cc b/selfdrive/ui/qt/onroad.cc index f16a6b4..b739998 100755 --- a/selfdrive/ui/qt/onroad.cc +++ b/selfdrive/ui/qt/onroad.cc @@ -504,7 +504,7 @@ void AnnotatedCameraWidget::drawHud(QPainter &p) { // } // } -void AnnotatedCameraWidget::drawSpeedWidget(QPainter &p, int &x, int &y, const QString &title, const QString &speedLimitStr, QColor &colorSpeed) { +void AnnotatedCameraWidget::drawSpeedWidget(QPainter &p, int x, int y, const QString &title, const QString &speedLimitStr, QColor &colorSpeed) { // Draw outer box + border to contain set speed and speed limit const int sign_margin = 12; const int us_sign_height = 186; diff --git a/selfdrive/ui/qt/onroad.h b/selfdrive/ui/qt/onroad.h index 92de24d..0ff3837 100755 --- a/selfdrive/ui/qt/onroad.h +++ b/selfdrive/ui/qt/onroad.h @@ -97,7 +97,7 @@ public: private: void drawText(QPainter &p, int x, int y, const QString &text, int alpha = 255); - void drawSpeedWidget(QPainter &p, int &x, int &y, const QString &title, const QString &speedLimitStr, QColor &colorSpeed); + void drawSpeedWidget(QPainter &p, int x, int y, const QString &title, const QString &speedLimitStr, QColor &colorSpeed); QVBoxLayout *main_layout; QPixmap dm_img;