Compare commits

...

2 Commits

Author SHA1 Message Date
nayan
91ee2a8de5 change rect width instead 2025-10-13 12:25:11 -04:00
nayan
5b7bbfa82d Trim Roadname UI to 30 chars 2025-10-13 11:04:18 -04:00

View File

@@ -620,7 +620,7 @@ void HudRendererSP::drawRoadName(QPainter &p, const QRect &surface_rect) {
// Constrain to reasonable bounds
int min_width = 200;
int max_width = surface_rect.width() - 40;
int max_width = surface_rect.width() / 3;
rect_width = std::max(min_width, std::min(rect_width, max_width));
// Center at top of screen