-
Notifications
You must be signed in to change notification settings - Fork 176
Refactor: Move Win32-specific DPI logic to Win32DPIUtils #2281
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
Refactor: Move Win32-specific DPI logic to Win32DPIUtils #2281
Conversation
Test Results 546 files + 1 546 suites +1 29m 25s ⏱️ - 7m 29s Results for commit 36e43e2. ± Comparison against base commit 756e8d8. This pull request removes 11 and adds 12 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
af4f446
to
ff7496a
Compare
ff7496a
to
f28ddd3
Compare
There are quite few changes in this PR. Could you please split it into several commits so I can review better? Try to split the commits where you used automated refactorings and mention "made by using only automated refactoring 'xyz'" in the commit-text. There are also compile errors. |
2a71902
to
327a528
Compare
1143bb0
to
c098aaf
Compare
c098aaf
to
1939d75
Compare
bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageData.java
Show resolved
Hide resolved
1d023e8
to
13e7915
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.
I went through the commit made with the automatic refactorings. Question: was it made by using only automated refactorings? I see some unexpected changes in there.
bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageData.java
Show resolved
Hide resolved
...e.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_Image.java
Outdated
Show resolved
Hide resolved
...e.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_Image.java
Outdated
Show resolved
Hide resolved
tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/DPIUtilTests.java
Show resolved
Hide resolved
e940b38
to
562e5ba
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.
LGTM, thank you!
I'll merge it on Monday since I have to leave the office now.
Removing all autoScale method from DPIUtil and replace it usages with scaleDown/Up method and pass the zoom from the caller side
This commit introduces a dedicated Win32DPIUtils class to isolate Win32-specific DPI logic, improving platform separation and maintainability. Refactored moving with eclipse refactoring tool.
f6484bb
to
36e43e2
Compare
This commit introduces a dedicated Win32DPIUtils class to isolate Win32-specific DPI logic, improving platform separation and maintainability.
This PR:
Remove all the usages of autoScale methods in windows.
Move the scaleDown/Up method to windows specific DPIUtil
Move Win32 DPIUtil related test to Win32 DPIUtil test class.
Required: Refactor: Move GTK-specific DPI logic to GtkDPIUtil #2280