Skip to content

Commit

Permalink
Still off centre
Browse files Browse the repository at this point in the history
  • Loading branch information
cydia2020 authored Oct 8, 2024
1 parent d1ba5d9 commit 471376b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions selfdrive/ui/qt/onroad/model.cc
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,9 @@ void ModelRenderer::drawLead(QPainter &painter, const cereal::RadarState::LeadDa
// calculate the radar text box
int radar_box_border = 6;
int radar_box_padding_horizontal = 60; // horizontal padding
int radar_box_padding_vertical = 0; // vertical padding
int radar_box_padding_vertical = 10; // vertical padding
int radar_box_offset = 80; // offset below the chevron
int radar_box_x = x - ((radar_text_width + radar_box_padding_horizontal + radar_box_border) / 2);
int radar_box_x = x - ((radar_text_width + radar_box_padding_horizontal) / 2);
int radar_box_y = y + radar_box_offset;
int radar_box_w = radar_text_width + radar_box_padding_horizontal;
int radar_box_h = radar_text_height + radar_box_padding_vertical;
Expand Down

0 comments on commit 471376b

Please sign in to comment.