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

Refactoring autoScaleUp with zoom to scaleUp #1339

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

amartya4256
Copy link
Contributor

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

@amartya4256 amartya4256 requested a review from niraj-modi as a code owner July 11, 2024 14:12
Copy link
Contributor

github-actions bot commented Jul 11, 2024

Test Results

   478 files  ±0     478 suites  ±0   7m 42s ⏱️ -57s
 4 147 tests ±0   4 139 ✅ ±0   8 💤 ±0  0 ❌ ±0 
16 354 runs  ±0  16 262 ✅ ±0  92 💤 ±0  0 ❌ ±0 

Results for commit 595888c. ± Comparison against base commit 53fc430.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@HeikoKlare HeikoKlare left a 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.

@amartya4256
Copy link
Contributor Author

@HeikoKlare Should I also do the changes for autoScaleBounds in the same PR? Since its just refactoring and done by the IDE anyways.

@HeikoKlare
Copy link
Contributor

Should I also do the changes for autoScaleBounds in the same PR? Since its just refactoring and done by the IDE anyways.

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).

Copy link
Contributor

@HeikoKlare HeikoKlare left a 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

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
@HeikoKlare HeikoKlare merged commit 0db6253 into eclipse-platform:master Jul 16, 2024
14 checks passed
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