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 display density detection and use GraphicsConfiguration. #34

Merged
merged 1 commit into from
Nov 26, 2019

Conversation

sampottinger
Copy link
Collaborator

@sampottinger sampottinger commented Nov 26, 2019

Reflexive access is no longer allowed so we need to transition displayDensity and isRetina to GraphicsConfiguration. Note that I am letting the cross-platform interface work on its own without the operating system check but, in testing, I have only seen a scale == 1 on Windows and Linux.

Resolves #32 and resolves #35.

Reflexive access is no longer allowed so we need to transition displayDensity and isRetina to GraphicsConfiguration. As part of this, it's worth noting that other displays outside of OS X may have a retina-like display.
@sampottinger
Copy link
Collaborator Author

sampottinger commented Nov 26, 2019

Tested on Windows 10 and Ubuntu 18.04.1 (both show displayDensity of 1). Also checked PGraphics across all OS. https://gist.github.com/sampottinger/36ca3e3c57f510380b8be597c95f1eb8. Mac reports displayDensity of 2 on my retina screen.

@sampottinger sampottinger changed the title Updated display density detection to use GraphicsConfiguration. Fix display density detection and use GraphicsConfiguration. Nov 26, 2019
@benfry benfry merged commit 0d151fd into master Nov 26, 2019
sampottinger added a commit that referenced this pull request Jul 1, 2020
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants