mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-23 20:52:06 +08:00
Trim Roadname UI to 30 chars
This commit is contained in:
@@ -51,6 +51,7 @@ void HudRendererSP::updateState(const UIState &s) {
|
||||
roadName = s.scene.road_name;
|
||||
if (sm.updated("liveMapDataSP")) {
|
||||
roadNameStr = QString::fromStdString(lmd.getRoadName());
|
||||
if (roadNameStr.length() > 30) roadNameStr = roadNameStr.left(30).append("...");
|
||||
speedLimitAheadValid = lmd.getSpeedLimitAheadValid();
|
||||
speedLimitAhead = lmd.getSpeedLimitAhead() * speedConv;
|
||||
speedLimitAheadDistance = lmd.getSpeedLimitAheadDistance();
|
||||
|
||||
Reference in New Issue
Block a user