Skip to content

fix: don't use DPI aware functions on Qt 5 (Windows 7/8) - #5391

Merged
pajlada merged 2 commits into
Chatterino:masterfrom
Nerixyz:fix/win7-8-dpi
May 12, 2024
Merged

pajlada merged 2 commits into
Chatterino:masterfrom
Nerixyz:fix/win7-8-dpi

Conversation

@Nerixyz

@Nerixyz Nerixyz commented May 12, 2024 •

Copy link
Copy Markdown
Contributor

#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
@Nerixyz
Nerixyz deleted the fix/win7-8-dpi branch May 13, 2024 06:07
babicekmarek pushed a commit to babicekmarek/streamally-chatterino that referenced this pull request Sep 14, 2026
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