mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2025-02-20 11:43:27 +08:00
Display (Haiku): trim monitor name
Some checks are pending
CI / spellcheck (push) Waiting to run
CI / No-features-test (push) Waiting to run
CI / Linux-amd64 (push) Waiting to run
CI / Linux-aarch64 (push) Waiting to run
CI / Linux-armv7l (push) Waiting to run
CI / Linux-armv6l (push) Waiting to run
CI / Linux-riscv64 (push) Waiting to run
CI / Linux-ppc64le (push) Waiting to run
CI / Linux-s390x (push) Waiting to run
CI / Musl-amd64 (push) Waiting to run
CI / macOS-universal (push) Waiting to run
CI / SunOS-amd64 (push) Waiting to run
CI / FreeBSD-amd64 (push) Waiting to run
CI / DragonFly-amd64 (push) Waiting to run
CI / OpenBSD-amd64 (push) Waiting to run
CI / NetBSD-amd64 (push) Waiting to run
CI / Windows-amd64 (push) Waiting to run
CI / Release (push) Blocked by required conditions
Some checks are pending
CI / spellcheck (push) Waiting to run
CI / No-features-test (push) Waiting to run
CI / Linux-amd64 (push) Waiting to run
CI / Linux-aarch64 (push) Waiting to run
CI / Linux-armv7l (push) Waiting to run
CI / Linux-armv6l (push) Waiting to run
CI / Linux-riscv64 (push) Waiting to run
CI / Linux-ppc64le (push) Waiting to run
CI / Linux-s390x (push) Waiting to run
CI / Musl-amd64 (push) Waiting to run
CI / macOS-universal (push) Waiting to run
CI / SunOS-amd64 (push) Waiting to run
CI / FreeBSD-amd64 (push) Waiting to run
CI / DragonFly-amd64 (push) Waiting to run
CI / OpenBSD-amd64 (push) Waiting to run
CI / NetBSD-amd64 (push) Waiting to run
CI / Windows-amd64 (push) Waiting to run
CI / Release (push) Blocked by required conditions
This commit is contained in:
parent
1fc0f75776
commit
ff8bfadd25
@ -33,6 +33,7 @@ static void detectDisplays(FFDisplayServerResult* ds)
|
|||||||
status_t err = s.GetMonitorInfo(&monitor);
|
status_t err = s.GetMonitorInfo(&monitor);
|
||||||
if (err == B_OK) {
|
if (err == B_OK) {
|
||||||
ffStrbufSetF(&name, "%s %s", monitor.vendor, monitor.name);
|
ffStrbufSetF(&name, "%s %s", monitor.vendor, monitor.name);
|
||||||
|
ffStrbufTrimRightSpace(&name);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t width = (uint32_t) s.Frame().Width() + 1;
|
uint32_t width = (uint32_t) s.Frame().Width() + 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user