-
Notifications
You must be signed in to change notification settings - Fork 143
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
Refactoring autoScaleUp with zoom to scaleUp #1339
Refactoring autoScaleUp with zoom to scaleUp #1339
Conversation
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.
Change is sound. It's hard to check every line of code, but I guess you simply applied the IDE refactoring?
As a follow-up, I propose to also align autoScaleImageData
and autoScaleBounds
, so that the naming is consistent throughout DPIUtil
.
bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/DPIUtil.java
Outdated
Show resolved
Hide resolved
5c160ad
to
c82deeb
Compare
@HeikoKlare Should I also do the changes for autoScaleBounds in the same PR? Since its just refactoring and done by the IDE anyways. |
c82deeb
to
ebd3057
Compare
Let's keep the PR's scope as small as possible and have separate PRs for other (similar) refactorings. That's easier to review and allows to revert less changes (if necessary). |
ebd3057
to
1654d59
Compare
1654d59
to
7e5a232
Compare
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.
Change looks good and is ready to merge from my side.
However, let's wait with merging anything Windows-HiDPI-related until we found the reasons for Windows I-Build failures related to SWT: #1344
7e5a232
to
1e12f10
Compare
This commit contributes to the renaming of methods DPIUtil.autoScaleUp containing int zoom as an argument to DPIUtil.scaleUp, since the scaling is not done automatically but based on the zoom level which is provided. Contributes to eclipse-platform#62 and eclipse-platform#127
1e12f10
to
595888c
Compare
This PR contributes to the renaming of methods DPIUtil.autoScaleUp containing int zoom as an argument to DPIUtil.scaleUp, since the scaling is not done automatically but based on the zoom level which is provided.
Contributes to #62 and #127