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.
This commit is contained in:
Kacper Michajłow 2023-08-13 17:16:41 +02:00 committed by Niklas Haas
parent 36972aec53
commit 540a5eb5ab
1 changed files with 3 additions and 1 deletions

View File

@ -718,7 +718,9 @@ local function add_video(s)
if append(s, scaled_width, {prefix="Scaled Resolution:"}) then if append(s, scaled_width, {prefix="Scaled Resolution:"}) then
append(s, scaled_height, {prefix="x", nl="", indent=" ", prefix_sep=" ", no_prefix_markup=true}) append(s, scaled_height, {prefix="x", nl="", indent=" ", prefix_sep=" ", no_prefix_markup=true})
end 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 if r["aspect"] ~= nil then
append(s, format("%.2f:1", r["aspect"]), {prefix="Aspect Ratio:"}) append(s, format("%.2f:1", r["aspect"]), {prefix="Aspect Ratio:"})
append(s, r["aspect-name"], {prefix="(", suffix=")", nl="", indent=" ", append(s, r["aspect-name"], {prefix="(", suffix=")", nl="", indent=" ",