mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 04:13:54 +08:00
onroad.cc: fix mutcd sign width for metric speed limit
old-commit-hash: a3a9a0685c
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user