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

actually use dpi_scale() on wasm backend #534

Merged
merged 1 commit into from
Feb 28, 2025

Conversation

kampffrosch94
Copy link
Contributor

I was messing around with scaling in wasm builds, trying to get pixel perfect results.
I was pretty confused why screen_dpi_scale() in macroquad always reported 1.0 even when that was clearly wrong.
grafik

It turns out that the DPI value was never written to the NativeDisplayData.
This PR fixes that.

@not-fl3 not-fl3 merged commit efa0e4f into not-fl3:master Feb 28, 2025
11 checks passed
@not-fl3
Copy link
Owner

not-fl3 commented Feb 28, 2025

Good catch, thanks for PR!

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

Successfully merging this pull request may close these issues.

2 participants