Skip to content

Load shcore at runtime and fallback if newer DPI funcs are unavailable#7

Merged
CakeLancelot merged 1 commit intoOpenFusionProject:masterfrom
CakeLancelot:master
Apr 21, 2025
Merged

Load shcore at runtime and fallback if newer DPI funcs are unavailable#7
CakeLancelot merged 1 commit intoOpenFusionProject:masterfrom
CakeLancelot:master

Conversation

@CakeLancelot
Copy link
Member

@CakeLancelot CakeLancelot commented Apr 21, 2025

This PR uses a different approach for setting DPI awareness that fixes support for Windows 7, 8, and 8.1.

It does so by attempting to load shcore at runtime and on failure will revert back to the older SetProcessDPIAware() function with no arguments.

vmplayer_2025-04-20_19-20-18

@CakeLancelot CakeLancelot merged commit 079bba9 into OpenFusionProject:master Apr 21, 2025
1 check 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