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 dpi_scale() always returning 1 on Windows #424

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

InZan17
Copy link
Contributor

@InZan17 InZan17 commented Apr 10, 2024

dpi_scale() would always return 1 on Windows despite setting high_dpi to true and my dpi settings at 150%.
This is fixed by calling display.init_dpi before setting dpi_scale to display.window_scale.

dpi_scale() would always return 1 on Windows despite setting high_dpi to true and my dpi settings at 150%.

This is fixed by calling init_dpi on display before setting dpi_scale to display.window_scale.
@not-fl3
Copy link
Owner

not-fl3 commented Apr 11, 2024

Thanks for PR!

@not-fl3 not-fl3 merged commit 8c942d8 into not-fl3:master Apr 11, 2024
10 checks passed
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