Visitar URL original
Need non-AWT ways to get display count, width, height, pixel density · Issue #57 · processing/processing4 · GitHub
The Wayback Machine - https://web.archive.org/web/20201107175216/https://github.com/processing/processing4/issues/57
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

Need non-AWT ways to get display count, width, height, pixel density #57

Open
benfry opened this issue Jan 20, 2020 · 0 comments
Open

Need non-AWT ways to get display count, width, height, pixel density #57

benfry opened this issue Jan 20, 2020 · 0 comments

Comments

@benfry
Copy link
Member

@benfry benfry commented Jan 20, 2020

We need either 1) an alternative/native method to make these work, or 2) a per-Surface version of them.

The second option is still problematic since we don't know what PSurface will be used when settings() is called. So either we need to start passing that to the command line, or do something more clever, i.e. once size() or fullScreen() is called, use the renderer to create an object that can handle these device settings on a per-surface type basis.

For now, displayWidth and displayHeight will be 0 when --disable-awt is used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.