From a670f75679246a0bb943e381597d52b74544f69a Mon Sep 17 00:00:00 2001 From: nanahi <130121847+na-na-hi@users.noreply.github.com> Date: Sun, 27 Oct 2024 16:38:42 -0400 Subject: [PATCH] console.lua: don't scale with display dpi if scaling with window size Fixes overly large text on hidpi displays. --- player/lua/console.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/player/lua/console.lua b/player/lua/console.lua index 5f4de8d490..6bb5436be4 100644 --- a/player/lua/console.lua +++ b/player/lua/console.lua @@ -243,12 +243,13 @@ local function get_scaled_osd_dimensions() return 0, 0 end + local scale = mp.get_property_native('display-hidpi-scale') if should_scale() then h = 720 w = 720 * aspect + scale = 1 end - local scale = mp.get_property_native('display-hidpi-scale') w = w / scale h = h / scale