diff options
author | Dudemanguy <random342@airmail.cc> | 2024-02-25 14:10:00 -0600 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2024-04-18 17:40:16 +0000 |
commit | bd1bcc1f31dcf614f4b53234a62dc6b6d0b25480 (patch) | |
tree | 1e42252372e071c5e01f46b3f0401eb050895993 /DOCS/man/input.rst | |
parent | bc28f7693d095758275448410aaa91255482857a (diff) | |
download | mpv-bd1bcc1f31dcf614f4b53234a62dc6b6d0b25480.tar.bz2 mpv-bd1bcc1f31dcf614f4b53234a62dc6b6d0b25480.tar.xz |
player: always notify when writing window-scale option
As described in the previous commit, update_window_scale will always
execute whenever window-scale is written even if the value doesn't
change.
Diffstat (limited to 'DOCS/man/input.rst')
-rw-r--r-- | DOCS/man/input.rst | 31 |
1 files changed, 3 insertions, 28 deletions
diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst index ae70585305..f9fa59121d 100644 --- a/DOCS/man/input.rst +++ b/DOCS/man/input.rst @@ -2690,30 +2690,6 @@ Property list enabled, or after precise seeking). Files with imprecise timestamps (such as Matroska) might lead to unstable results. -``window-scale`` (RW) - Window size multiplier. Setting this will resize the video window to the - values contained in ``dwidth`` and ``dheight`` multiplied with the value - set with this property. Setting ``1`` will resize to original video size - (or to be exact, the size the video filters output). ``2`` will set the - double size, ``0.5`` halves the size. - - Note that setting a value identical to its previous value will not resize - the window. That's because this property mirrors the ``window-scale`` - option, and setting an option to its previous value is ignored. If this - value is set while the window is in a fullscreen, the multiplier is not - applied until the window is taken out of that state. Writing this property - to a maximized window can unmaximize the window depending on the OS and - window manager. If the window does not unmaximize, the multiplier will be - applied if the user unmaximizes the window later. - - See ``current-window-scale`` for the value derived from the actual window - size. - - Since mpv 0.31.0, this always returns the previously set value (or the - default value), instead of the value implied by the actual window size. - Before mpv 0.31.0, this returned what ``current-window-scale`` returns now, - after the window was created. - ``current-window-scale`` (RW) The ``window-scale`` value calculated from the current window size. This has the same value as ``window-scale`` if the window size was not changed @@ -2722,10 +2698,9 @@ Property list calculated from the last non-fullscreen size of the window. The property is unavailable if no video is active. - When setting this property in the fullscreen or maximized state, the behavior - is the same as window-scale. In all other cases, setting the value of this - property will always resize the window. This does not affect the value of - ``window-scale``. + It is also possible to write to this property. This has the same behavior as + writing ``window-scale``. Note that writing to ``current-window-scale`` will + not affect the value of ``window-scale``. ``focused`` Whether the window has focus. Might not be supported by all VOs. |