diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-08-13 17:16:41 +0200 |
---|---|---|
committer | Niklas Haas <github-daiK1o@haasn.dev> | 2023-08-18 16:39:35 +0200 |
commit | 540a5eb5ab452e290f4fd40447eeeb1b8aee180f (patch) | |
tree | 8f174f5ed8850395d3427cca67dd94b821a7a93a /player/lua/stats.lua | |
parent | 36972aec535354c70b68021935bb7d238442b1cd (diff) | |
download | mpv-540a5eb5ab452e290f4fd40447eeeb1b8aee180f.tar.bz2 mpv-540a5eb5ab452e290f4fd40447eeeb1b8aee180f.tar.xz |
stats.lua: hide window scale in fullscreen
It display window (not fullscreen) scale, which is quite confusing as it
doesn't match any other currently displayed values.
Diffstat (limited to 'player/lua/stats.lua')
-rw-r--r-- | player/lua/stats.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/player/lua/stats.lua b/player/lua/stats.lua index f5e2187dab..46cf81e434 100644 --- a/player/lua/stats.lua +++ b/player/lua/stats.lua @@ -718,7 +718,9 @@ local function add_video(s) if append(s, scaled_width, {prefix="Scaled Resolution:"}) then append(s, scaled_height, {prefix="x", nl="", indent=" ", prefix_sep=" ", no_prefix_markup=true}) end - append_property(s, "current-window-scale", {prefix="Window Scale:"}) + if not mp.get_property_native("fullscreen") then + append_property(s, "current-window-scale", {prefix="Window Scale:"}) + end if r["aspect"] ~= nil then append(s, format("%.2f:1", r["aspect"]), {prefix="Aspect Ratio:"}) append(s, r["aspect-name"], {prefix="(", suffix=")", nl="", indent=" ", |