From 540a5eb5ab452e290f4fd40447eeeb1b8aee180f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Sun, 13 Aug 2023 17:16:41 +0200 Subject: [PATCH] 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. --- player/lua/stats.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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=" ",