[GTK] Replacing usages of Display#getDPI from gtk#2871
[GTK] Replacing usages of Display#getDPI from gtk#2871HeikoKlare merged 1 commit intoeclipse-platform:masterfrom
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.
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.
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