summaryrefslogtreecommitdiffstats
path: root/player/lua/stats.lua
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-12-16 02:22:51 +0100
committerwm4 <wm4@nowhere>2019-12-16 02:22:51 +0100
commit98008558950c3eb99bad031cb478afa287e428aa (patch)
tree7b7f668f888c982156f7a5518fb6c8d83795b178 /player/lua/stats.lua
parent1d482e42cbfca3a81a17184c8bcb4674b58a195d (diff)
downloadmpv-98008558950c3eb99bad031cb478afa287e428aa.tar.bz2
mpv-98008558950c3eb99bad031cb478afa287e428aa.tar.xz
x11: scale window-scale by DPI
"window-scale" is 1.0 by default; however, x11 implicitly set that to 2.0 on hidpi screens. This made the default 2.0, which was inconsistent with the option. The "window-scale" property jumped from 1.0 to 2.0 when a window was created. Avoid this by factoring the DPI into the window-scale. This makes the UNFS_WINDOW_SIZE return a virtual size; since this value is used for the window-scale property only, this is fine and has no further consequences. (Originally, this was possibly meant to be used for other purposes, but I'm perfectly fine with redoing this again should that ever happen.) This changes user-visible behavior, and it's as if setting window-scale multiplies its argument by 2 suddenly. Hopefully no user will get angry.
Diffstat (limited to 'player/lua/stats.lua')
0 files changed, 0 insertions, 0 deletions