summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2020-11-07 18:36:26 -0600
committeravih <avih@users.noreply.github.com>2021-08-07 17:30:19 +0300
commita0441ddb5e1a494275dcb8235268cd113babc491 (patch)
tree3ecd9be906ef83a34f908302433ab89baf73b847 /etc
parent2667dd66437723580f80671933b55963cc6bc8f5 (diff)
downloadmpv-a0441ddb5e1a494275dcb8235268cd113babc491.tar.bz2
mpv-a0441ddb5e1a494275dcb8235268cd113babc491.tar.xz
command: make current-window-scale writeable, 2nd attempt
The window-scale property mirrors the respective option (not the effective scale derived from the current window size), and as such setting its value to the same value it had before has no effect. Specifically - the window will not resize. This is consistent as far as property-option bridge behavior goes, but we do end up with an issue that we can't set an arbitrary scale and expect the window to always resize accordingly. We do also have a current-window-scale property which does reflect the actual window size, however, it's been read-only till now. This commit makes current-window-scale RW so that it's now always possible to set an arbitrary scale and expect the window to resize accordingly (without affecting window-scale - like manual resize). Also, mention window-scale no-effect-if-not-changed at the docs. Based on code by @Dudemanguy from commit 873ae0d, with same effect.
Diffstat (limited to 'etc')
-rw-r--r--etc/input.conf6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/input.conf b/etc/input.conf
index 63da217f3c..f84c0b7fca 100644
--- a/etc/input.conf
+++ b/etc/input.conf
@@ -118,9 +118,9 @@
#6 add gamma 1
#7 add saturation -1
#8 add saturation 1
-#Alt+0 set window-scale 0.5
-#Alt+1 set window-scale 1.0
-#Alt+2 set window-scale 2.0
+#Alt+0 set current-window-scale 0.5
+#Alt+1 set current-window-scale 1.0
+#Alt+2 set current-window-scale 2.0
# toggle deinterlacer (automatically inserts or removes required filter)
#d cycle deinterlace
#r add sub-pos -1 # move subtitles up