Skip to content

Commit

Permalink
OnroadHud: use function loadPixmap (#23292)
Browse files Browse the repository at this point in the history
  • Loading branch information
deanlee authored Dec 22, 2021
1 parent db6c477 commit bf4d875
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions selfdrive/ui/qt/onroad.cc
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ void OnroadAlerts::paintEvent(QPaintEvent *event) {

// OnroadHud
OnroadHud::OnroadHud(QWidget *parent) : QWidget(parent) {
engage_img = QPixmap("../assets/img_chffr_wheel.png").scaled(img_size, img_size, Qt::KeepAspectRatio, Qt::SmoothTransformation);
dm_img = QPixmap("../assets/img_driver_face.png").scaled(img_size, img_size, Qt::KeepAspectRatio, Qt::SmoothTransformation);
engage_img = loadPixmap("../assets/img_chffr_wheel.png", {img_size, img_size});
dm_img = loadPixmap("../assets/img_driver_face.png", {img_size, img_size});

connect(this, &OnroadHud::valueChanged, [=] { update(); });
}
Expand Down

0 comments on commit bf4d875

Please sign in to comment.