summaryrefslogtreecommitdiffstats
path: root/video/out/w32_common.h
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-03-07 11:16:45 -0600
committerDudemanguy <random342@airmail.cc>2023-03-08 14:06:22 +0000
commitb313a242c24637484a68c29ee679f45432d85bb7 (patch)
tree3e1290a5d251f5a0c4a24ab99122a3e16a145fef /video/out/w32_common.h
parent855b619cc9872a2919d071166d5b50d6a2a8a708 (diff)
downloadmpv-b313a242c24637484a68c29ee679f45432d85bb7.tar.bz2
mpv-b313a242c24637484a68c29ee679f45432d85bb7.tar.xz
wayland: use correct x/y coordinates for the cursor
While adding fractional scale support, the coordinates for wayland changed to always include the scaling parameter. The pointer stuff actually did too. However, the check_for_resize function used the unscaled, local surface coordinates. Likely, it was neccesary at the time since wl->geometry used to report unscaled coordinates. In light of that, we can just simply use mouse_x/y instead for this function to make it work correctly with the right/bottom edges. mouse_unscaled becomes completely unneccesary, so just drop it. Some minor style changes included just because.
Diffstat (limited to 'video/out/w32_common.h')
0 files changed, 0 insertions, 0 deletions