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 scaling of the buffer on macOS #32

Closed
wants to merge 2 commits into from
Closed

Fix scaling of the buffer on macOS #32

wants to merge 2 commits into from

Conversation

tronical
Copy link
Contributor

Currently the size of the buffer on macOS is interpreted in logical pixels, which
is inconsistent with the other platforms. Instead,
we should apply the same scale factor that applies to regular rendering.

Fixes #22

…tches

Resize the window to the physical size of the image.
If softbuffer scales the contents incorrectly, only parts
of the fruit basket will be visible.
Currently the size of the buffer on macOS is interpreted in logical pixels, which
is inconsistent with the other platforms. Instead,
we should apply the same scale factor that applies to regular rendering.

Fixes #22
@tronical
Copy link
Contributor Author

Moving this to rust-windowing/swbuf#6

@tronical tronical closed this Dec 21, 2022
@tronical tronical deleted the simon/macos-scale-fix branch September 6, 2023 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Support for physical vs logical pixels
1 participant