This fixes a bug causing the wrong DPI being used when moving the window from a screen to another screen to the left. Using the top-left position of the window to determine screen changes doesn't work well since the device pixel ratio of a window does not change until the window is roughly halfway across.
Details
Details
- Reviewers
dkazakov - Group Reviewers
Krita - Maniphest Tasks
- T2299: Make the canvas behave in HiDPI mode
- Commits
- R37:eff0c7010ac3: Fix wrong DPI when moving window across screens
- Use two screens with different DPI scaling.
- With the window on the left screen, open an image and note the image size at 100% zoom.
- Move window from the left screen to the right screen then back to the left screen.
- Verify that the image size is the same as before.
Diff Detail
Diff Detail
- Repository
- R37 Krita
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
Hi, @alvinhochun!
The patch seems to work! I don't know we didn't use it before. perhaps it was not present in older versions of Qt :)