0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00
mpv/DOCS/interface-changes
Kacper Michajłow 8708f4dc91 m_property: add > for fixed precision floating-point expansion
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.
2024-03-21 03:50:11 +01:00
..
escape-ass.txt command: add escape-ass 2024-03-21 03:20:14 +01:00
example.txt DOCS: document the new way to handle interface changes 2024-03-20 22:38:56 +00:00
floating-point_property_expansion.txt m_property: add > for fixed precision floating-point expansion 2024-03-21 03:50:11 +01:00
term-size.txt player/command: add term-size/[w,h] property 2024-03-21 03:08:52 +01:00