summaryrefslogtreecommitdiffstats
path: root/player/lua
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2021-06-28 11:03:51 -0500
committerDudemanguy <random342@airmail.cc>2021-06-30 16:37:36 +0000
commitf2afae55e95b4b1eec1aeb828ba6ff1f0695d993 (patch)
treecb8bb2abd59d938077544c1732173dae2c4fef4f /player/lua
parent0c1544e66cb980bd8a1dedb13ac07904380da608 (diff)
downloadmpv-f2afae55e95b4b1eec1aeb828ba6ff1f0695d993.tar.bz2
mpv-f2afae55e95b4b1eec1aeb828ba6ff1f0695d993.tar.xz
wayland: refactor surface scaling
Another day, another wayland refactor. Way back when, dcc3c2e added support for the hidpi-window-scale option (something you probably should never set to no but whatever) to wayland. Well technically, it never had any runtime toggling support (don't remember if detecting when vo_opts changed was possible or not then; maybe not). Anyways in the process of fixing that, I went ahead and refactored how this is all handled. The key difference is that when hidpi-window-scale is disabled, wl->scaling is directly set to 1 instead of forcibly setting wl->current_output->scale to 1. Note that scaling operations don't always require a geometry reset/resize so set_surface_scaling needs to be separate from set_geometry. The logic here is kind of complicated but it (should) be correct.
Diffstat (limited to 'player/lua')
0 files changed, 0 insertions, 0 deletions