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 issues with DPI scaling that were making PI offcenter and too large #3170

Merged
merged 4 commits into from
Jun 10, 2024

Conversation

jaholme
Copy link
Contributor

@jaholme jaholme commented Jun 6, 2024

Summary of the pull request

In some places we were multiplying raw pixel values by the dpiscale, this was resulting in values that were too large causing PI not to come up centered on the monitor.
The defaults for expanded view were assigning raw device pixel values to the window Width which are device independent pixels and need to be scaled by the monitors scale factor.

References and relevant issues

Detailed description of the pull request / Additional comments

Validation steps performed

Clean installed Devhome, deleting any PI user.config files found under C:\Users*\AppData\Local\Microsoft_Corporation\DevHome.PI**\user.config to reset the expanded view saved values.
On a device with 150% scale factor PI is now launched centered and the expanded view doesn't exceed the bounds of the monitor.

PR checklist

Copy link
Contributor

@zadesai zadesai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@jaholme jaholme merged commit 1ef4594 into main Jun 10, 2024
4 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.

Expand size doesn't correctly allow for DPI
4 participants