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 authored and Kacper Michajłow committed 2024-10-27 21:43:36 +01:00
1 parent 423e8f2711
commit a670f75679
1 file changed
+2 -1
+2 -1
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