-
Notifications
You must be signed in to change notification settings - Fork 190
[GTK] Replacing usages of Display#getDPI from gtk #2871
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
Conversation
Test Results (linux) 88 files 88 suites 14m 24s ⏱️ Results for commit 49536d1. ♻️ This comment has been updated with latest results. |
|
The GTK3 tests hung after 360m - I don't think that is because of your change and I have raised #2876 to track that |
68506f4 to
4295083
Compare
HeikoKlare
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having the scale factor being based on the screen DPI leads to unexpected result e.g. Image too big/small. Having a screen dpi independent factor leads to consistent results.
I do not understand how the commit/PR message relates to the actual change. What unexpected results to you refer to? Can you share an example?
And can you explain why it is correct to use a fixed DPI value of 96 in Display, even though the current getDPI() implementation has more sophisticated logic to determine the actual DPI? Should the implementation of getDPI() be changed then, in case the value is wrong?
04f5613 to
7723c4f
Compare
After our discussion. I have changed the commit message and its content. Now we only get rid of getDPI usage only where its possible. For For later: we can deprecate the getDPI method now, but later we can keep the usage to internal by making getDPI package protected. |
7723c4f to
b695984
Compare
This is a preparatory commit to remove all **possible** usages of getDPI from gtk. Since getDPI is set to be deprecated.
b695984 to
49536d1
Compare
HeikoKlare
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reusing the already stored DPI value instead of re-retrieving it is fine to avoid unnecessary multiple calls to getDPI().
This is a preparatory commit to remove all possible usages of getDPI from gtk. Since getDPI is set to be deprecated.
PR for Deprecation: #2872