From 2312ca57c99e0d9925541bc23dc147e83da1bc07 Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Fri, 24 Jun 2022 16:18:47 +0200 Subject: [PATCH] less diff --- selfdrive/ui/qt/onroad.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/selfdrive/ui/qt/onroad.cc b/selfdrive/ui/qt/onroad.cc index cfd128218dab03..9a9d152676265e 100644 --- a/selfdrive/ui/qt/onroad.cc +++ b/selfdrive/ui/qt/onroad.cc @@ -406,8 +406,8 @@ void NvgWindow::initializeGL() { } void NvgWindow::updateFrameMat() { - UIState *s = uiState(); CameraViewWidget::updateFrameMat(); + UIState *s = uiState(); int w = width(), h = height(); s->fb_w = w; @@ -421,7 +421,6 @@ void NvgWindow::updateFrameMat() { // 1) Put (0, 0) in the middle of the video // 2) Apply same scaling as video // 3) Put (0, 0) in top left corner of video - s->car_space_transform.reset(); s->car_space_transform.translate(w / 2 - x_offset, h / 2 - y_offset) .scale(zoom, zoom)