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