mirror of https://github.com/mpv-player/mpv
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:
parent
423e8f2711
commit
a670f75679
|
@ -243,12 +243,13 @@ local function get_scaled_osd_dimensions()
|
||||||
return 0, 0
|
return 0, 0
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local scale = mp.get_property_native('display-hidpi-scale')
|
||||||
if should_scale() then
|
if should_scale() then
|
||||||
h = 720
|
h = 720
|
||||||
w = 720 * aspect
|
w = 720 * aspect
|
||||||
|
scale = 1
|
||||||
end
|
end
|
||||||
|
|
||||||
local scale = mp.get_property_native('display-hidpi-scale')
|
|
||||||
w = w / scale
|
w = w / scale
|
||||||
h = h / scale
|
h = h / scale
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue