console.lua: don't scale with display dpi if scaling with window size

Fixes overly large text on hidpi displays.
This commit is contained in:
nanahi 2024-10-27 16:38:42 -04:00 committed by Kacper Michajłow
parent 423e8f2711
commit a670f75679
1 changed files with 2 additions and 1 deletions

View File

@ -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