mirror of
https://github.com/mpv-player/mpv
synced 2025-02-21 15:27:00 +00:00
This enhancement makes it easier to create constant width property expansions, useful for the `--term-status-msg`. Additionally, it changes to `%f` printing with manual zero trimming, which is easier to control than `%g`. With this method, we can directly specify precision, not just significant numbers. This approach also avoids overly high precision for values less than 1, which is not necessary for a generic floating-point print function. A new print helper function is added, which can be used with adjusted precision for specific cases where a different default is needed. This also unifies the code slightly.
2 lines
62 B
Plaintext
2 lines
62 B
Plaintext
add `>` for fixed precision floating-point property expansion
|