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

DPI problem with heaps wegl #899

Closed
7sharp9 opened this issue Oct 20, 2020 · 3 comments
Closed

DPI problem with heaps wegl #899

7sharp9 opened this issue Oct 20, 2020 · 3 comments

Comments

@7sharp9
Copy link

7sharp9 commented Oct 20, 2020

See the two example screenshots, the first as 2560x1440, the second on a retina screen rendering at 3200x1800 with a native resolution of 5120x2880

Screenshot 2020-10-20 at 13 10 40

Screenshot 2020-10-20 at 13 10 07

This is the same in Safari and Chrome running on a Mac with MacOs 10.15.7

@Yanrishatum
Copy link
Contributor

Duplicate of #589

@Yanrishatum
Copy link
Contributor

For JS you can enable hxd.Window.useScreenPixels, which would disable adaptation of the canvas to browser resolution, and will look the same at any DPI, but at the same time will ignore browser zoom capabilities.

@7sharp9
Copy link
Author

7sharp9 commented Oct 20, 2020

Yeah I wasn't sure if it was a duplicate of 589, thanks for the tip with hxd.Window.useScreenPixels

@7sharp9 7sharp9 closed this as completed Oct 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants