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

HiDPI support #40

Merged
merged 7 commits into from
Nov 6, 2019
Merged

HiDPI support #40

merged 7 commits into from
Nov 6, 2019

Conversation

hecrj
Copy link
Member

@hecrj hecrj commented Nov 5, 2019

Depends on #38. Closes #39 and #42.

Tour example running on macOS

This PR implements support for UI scaling in iced_wgpu. This allows us to support HiDPI displays in iced_winit, using the DPI factor reported by winit.

For now, rounded rectangles are anti-aliased quite naively. GUIs may not look as crisp on monitors with a non-integer DPI factor.

Quads are a bit trickier to handle. We may need to change the shaders a
bit.
The anti-aliasing strategy is pretty naive, but we will manage for now.
@hecrj hecrj added the feature New feature or request label Nov 5, 2019
@hecrj hecrj added this to the 0.1.0 milestone Nov 5, 2019
@hecrj hecrj self-assigned this Nov 5, 2019
@hecrj hecrj merged commit efa8d26 into master Nov 6, 2019
@hecrj hecrj deleted the feature/hidpi-support branch November 7, 2019 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants