Skip to content

Conversation

@HeikoKlare
Copy link
Contributor

In some image constructors, image data are currently auto-scaled. This works by accident, as the device zoom used for auto scaling conforms to the zoom of the image to be initialized.

However, to make this explicit, with this change the proper zoom is passed to scale method. It also makes the autoScaleUp method in DPIUtil obsolete and removes it.

This supcedes

which migrated to a different but likely inaccurate autoScale operation.

Required to keep changes in #1828 simple.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2025

Test Results

   506 files  ±0     506 suites  ±0   8m 39s ⏱️ +30s
 4 340 tests ±0   4 326 ✅ ±0   14 💤 ±0  0 ❌ ±0 
16 596 runs  ±0  16 487 ✅ ±0  109 💤 ±0  0 ❌ ±0 

Results for commit 2e07560. ± Comparison against base commit 5a22598.

♻️ This comment has been updated with latest results.

@HeikoKlare HeikoKlare marked this pull request as ready for review March 7, 2025 15:34
@HeikoKlare
Copy link
Contributor Author

@akoch-yatta can you please also have a look at this ones? Just a simple enhacement.

Copy link
Contributor

@akoch-yatta akoch-yatta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good to me

In some image constructors, image data are currently auto-scaled. This
works by accident, as the device zoom used for auto scaling conforms to
the zoom of the image to be initialized.

However, to make this explicit, with this change the proper zoom is
passed to scale method. It also makes the autoScaleUp method in DPIUtil
obsolete and removes it.

Co-authored-by: Hannes Wellmann <[email protected]>
@HeikoKlare HeikoKlare force-pushed the remove-imagedata-autoscaleup branch from 8c1bfc1 to 2e07560 Compare March 7, 2025 16:34
@HeikoKlare HeikoKlare merged commit 29753aa into eclipse-platform:master Mar 7, 2025
14 checks passed
@HeikoKlare HeikoKlare deleted the remove-imagedata-autoscaleup branch March 7, 2025 16:47
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