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

Applications declared as DPI-aware in the Windows environment #396

Merged
merged 4 commits into from
Nov 30, 2017
Merged

Applications declared as DPI-aware in the Windows environment #396

merged 4 commits into from
Nov 30, 2017

Conversation

bjornblissing
Copy link
Contributor

Applications that run on a Windows computer with desktop scaling enabled
gets scaled incorrectly since windows assumes that applications are
DPI-unaware unless declared otherwise.

This change declares the application DPI-aware, thus not automatically
scaled by the operating system.

Björn Blissing and others added 4 commits November 30, 2017 12:50
The define of _WIN32_WINNT was added to handle an error case from MinGW
,as described in commit 712ca43

This was later giving warnings and thus undefined for MinGW by commit
3bf6fb1

Since the two operations cancel each other out, they should be removed.
Added script to identify the Windows version used to compile the source.
Currently the windows version for Windows NT is hard coded into the
source. By running this CMake script the _WIN32_WINNT preprocessor
variable gets set to the corresponding windows version.
Applications that run on a Windows computer with desktop scaling enabled
gets scaled incorrectly since windows assumes that applications are
DPI-unaware unless declared otherwise.

This change declares the application DPI-aware, thus not automatically
scaled by the operating system.

The corresponding library call requires Windows 8.1 or later.
@openscenegraph openscenegraph merged commit 2366305 into openscenegraph:master Nov 30, 2017
@bjornblissing bjornblissing deleted the feature/DPIAwareScaling branch November 30, 2017 14:45
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