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: don't use DPI aware functions on Qt 5 (Windows 7/8) #5391

Merged
merged 2 commits into from
May 12, 2024

Conversation

Nerixyz
Copy link
Contributor

@Nerixyz Nerixyz commented May 12, 2024

#4868 added DPI aware functions that only work on Windows 10. When compiling with Qt 5 on Windows, it is now assumed the application will run on older systems. Maybe there should be a warning when running with Qt 5 on Windows 10 to use Qt 6.

Fixes #5390.


To make this work on Qt 5 and Windows 10, I'd need to load user32.dll and find the export (if it's there). I don't think that's worth the effort.

@pajlada pajlada enabled auto-merge (squash) May 12, 2024 20:30
@pajlada pajlada merged commit 2ad45bc into Chatterino:master May 12, 2024
17 checks passed
@Nerixyz Nerixyz deleted the fix/win7-8-dpi branch May 13, 2024 06:07
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.

[Nightly] chatterino-windows-old-x86-64-Qt-5.15.2 GetDpiForWindow on older OS
2 participants