Skip to content

Commit

Permalink
less diff
Browse files Browse the repository at this point in the history
  • Loading branch information
pd0wm committed Jun 27, 2022
1 parent cd02d61 commit 59cf95d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions selfdrive/ui/qt/onroad.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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)
Expand Down

0 comments on commit 59cf95d

Please sign in to comment.