Display (Haiku): trim monitor name

This commit is contained in:
李通洲
2025-02-11 16:24:42 +08:00
parent 1fc0f75776
commit ff8bfadd25
@@ -33,6 +33,7 @@ static void detectDisplays(FFDisplayServerResult* ds)
status_t err = s.GetMonitorInfo(&monitor);
if (err == B_OK) {
ffStrbufSetF(&name, "%s %s", monitor.vendor, monitor.name);
ffStrbufTrimRightSpace(&name);
}
uint32_t width = (uint32_t) s.Frame().Width() + 1;