summaryrefslogtreecommitdiffstats
path: root/player/lua
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-12-16 02:32:17 +0100
committerwm4 <wm4@nowhere>2019-12-16 02:32:17 +0100
commitd07b7f068db56aa5fa7cf16b9d077721ff0a8452 (patch)
tree355bb260fc26e1b8f43d373c1441a21662ad13b5 /player/lua
parent98008558950c3eb99bad031cb478afa287e428aa (diff)
downloadmpv-d07b7f068db56aa5fa7cf16b9d077721ff0a8452.tar.bz2
mpv-d07b7f068db56aa5fa7cf16b9d077721ff0a8452.tar.xz
command: change "window-scale" property behavior
This is similar to the "edition" change. I considered making this go through deprecation, but didn't have a good idea how to do that. Maybe it's fine, because this is pretty obscure. But it might break some API users/scripts (it certainly broke stats.lua), and all I have to say is sorry for that.
Diffstat (limited to 'player/lua')
-rw-r--r--player/lua/stats.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/lua/stats.lua b/player/lua/stats.lua
index a1cd566ab5..aa95592694 100644
--- a/player/lua/stats.lua
+++ b/player/lua/stats.lua
@@ -506,7 +506,7 @@ local function add_video(s)
if append(s, r["w"], {prefix="Native Resolution:"}) then
append(s, r["h"], {prefix="x", nl="", indent=" ", prefix_sep=" ", no_prefix_markup=true})
end
- append_property(s, "window-scale", {prefix="Window Scale:"})
+ append_property(s, "current-window-scale", {prefix="Window Scale:"})
append(s, format("%.2f", r["aspect"]), {prefix="Aspect Ratio:"})
append(s, r["pixelformat"], {prefix="Pixel Format:"})