onroad.cc: fix mutcd sign width for metric speed limit

pull/25061/head
Willem Melching 3 years ago
parent edf170103e
commit a3a9a0685c
  1. 2
      selfdrive/ui/qt/onroad.cc

@ -296,7 +296,7 @@ void NvgWindow::drawHud(QPainter &p) {
// US/Canada (MUTCD style) sign
if (has_us_speed_limit) {
const int border_width = 6;
const int sign_width = (speedLimitStr.size() >= 3) ? 199 : 148;
const int sign_width = rect_width - 24;
const int sign_height = 186;
// White outer square

Loading…
Cancel
Save