Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix coordinate problem for retina displays #8

Merged
merged 2 commits into from
Apr 20, 2021
Merged

Fix coordinate problem for retina displays #8

merged 2 commits into from
Apr 20, 2021

Conversation

ch-sa
Copy link
Owner

@ch-sa ch-sa commented Apr 20, 2021

Problem: Cursor was off by fixed distance for retina displays due to wrong coordinate calculation of GLU.unproject()

Solution: Consider display pixel ratio when calculating coordinates from screen coordinates.

Closes #7

@ch-sa ch-sa added the bug Something isn't working label Apr 20, 2021
@ch-sa ch-sa self-assigned this Apr 20, 2021
@ch-sa ch-sa merged commit 50d12da into main Apr 20, 2021
@ch-sa ch-sa deleted the mac-retina-fix branch May 16, 2021 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't use the mouse to change the size of Bounding Boxes.
1 participant