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 #17773] fix HiDPI in map canvas on mac #8242

Merged
merged 8 commits into from
Oct 19, 2018
Merged

Conversation

3nids
Copy link
Member

@3nids 3nids commented Oct 19, 2018

So much time for such small changes!

This fixes the issue by integrating the device pixel ratio from Qt.
The images in renderer are scaled up to match the physical size of the canvas.

Many kudos to @wonder-sk for leading me in this black hole.
And to the sponsors of the Mac OS bugfixing!

left current, right fixed:
image

As a bonus, the scale was badly calculated before, and it's magically fixed :)

further reading: http://doc.qt.io/qt-5/scalability.html#high-dpi-scaling-on-macos-and-ios

For system introducing pixel device ratio, the image rendered by the canvas is actually scaled up to match the physical size of the canvas"
not sure how it works internally in Qt, but no need to call epxlicitely on scaling since the image device pixel ratio is set
@3nids 3nids merged commit fb2883c into qgis:master Oct 19, 2018
@3nids 3nids deleted the final_dpi branch October 19, 2018 18:56
@nyalldawson
Copy link
Collaborator

Does this apply to layouts too?

@3nids
Copy link
Member Author

3nids commented Oct 19, 2018

looks like this will have to be fixed too

image

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