summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2020-11-07 18:36:26 -0600
committerDudemanguy <random342@airmail.cc>2021-08-05 19:13:10 +0000
commit873ae0de2af3bb84a11e5e57f6e3a8942b2263c2 (patch)
tree566387964502e2ce0a4e649717476997a6f3ee87 /etc
parent41650203c32e179e5f3cf89e176ef6caccba05d9 (diff)
downloadmpv-873ae0de2af3bb84a11e5e57f6e3a8942b2263c2.tar.bz2
mpv-873ae0de2af3bb84a11e5e57f6e3a8942b2263c2.tar.xz
command: make current-window-scale writeable
Somewhat confusingly, mpv has both a window-scale option and a current-window-scale property. The documentation lists window-scale under properties (and it is technically is one), but at its core it is actually an option which means it behaves subtly different. Options in mpv are runtime-configurable, but they only change anything if the value of the option itself changes. window-scale is an option and not meant to keep track of the actual scale of the window (intended behavior introduced by d07b7f0). This causes window-scale to do nothing in certain cases (ex: the window is manually resized and window-scale is set to 1.00 again). This is logical and consistent with the behavior of the rest of the mpv options, but it also makes it a poor candidate for setting the mpv window scale dynamically. As a remedy, we can just make current-window-scale writeable instead. current-window-scale is intended to always report the actual scale of the window and keep track of any window size changes made by the user. By making this property also writeable, it allows the user to have more intuitive behavior (i.e. setting current-window-scale to 1.00 always sets the window to a scale of 1). Additionally, the default input.conf is changed to use current-window-scale instead of window-scale. The window-scale documentation under property list is removed since it is already documented under options and users should probably set the current-window-scale property instead in most cases.
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