liblava / liblava

Modern and easy-to-use library for Vulkan
https://liblava.dev
MIT License
783 stars 46 forks source link

Fixes mouse coordinates for macos retina screens. #97

Closed dunkyp closed 1 year ago

dunkyp commented 1 year ago

By default the mouse coordinates are in the wrong scale. I haven't checked this on high-dpi windows or linux screens, so this patch may not be correct for them.

original behaviour: https://user-images.githubusercontent.com/58549/218182791-0d947f25-1438-4423-a79f-51eae223deb7.mp4 fixed behaviour: https://user-images.githubusercontent.com/58549/218182770-07891e0d-9555-486a-ad4a-a7a2e0a079e1.mp4

TheLavaBlock commented 1 year ago

:+1: Thanks for this fix, I will look at it and check it out on the other platforms.

TheLavaBlock commented 1 year ago

LGTM. I have verified it on the platforms as far as possible.