Skip to content

Conversation

@ShahzaibIbrahim
Copy link
Contributor

@ShahzaibIbrahim ShahzaibIbrahim commented Dec 10, 2025

This commit is made to prepare for Display#getDPI deprecation. removing/replacing all unnecessary usages.

@ShahzaibIbrahim ShahzaibIbrahim linked an issue Dec 10, 2025 that may be closed by this pull request
1 task
@github-actions
Copy link
Contributor

Test Results

  176 files  ±0    176 suites  ±0   29m 5s ⏱️ - 1m 43s
4 670 tests ±0  4 648 ✅ ±0  22 💤 ±0  0 ❌ ±0 
  481 runs  ±0    475 ✅ ±0   6 💤 ±0  0 ❌ ±0 

Results for commit e9f7fa3. ± Comparison against base commit 833d748.

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.

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 is related to the actual change. There is no change in what DPI value is used at all. The change simply adds a faulty warning suppression and removes some text.

@ShahzaibIbrahim ShahzaibIbrahim force-pushed the master-224-test branch 2 times, most recently from 9c6eff8 to ed1c3a9 Compare December 29, 2025 13:10
@ShahzaibIbrahim
Copy link
Contributor Author

Updated the message in PR and commit. SuppressWarning was added to test as Display#getDPI is set to be deprecated but it does make sense to do it when it is actually deprecated.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 29, 2025

Test Results (linux)

   88 files  ±0     88 suites  ±0   14m 29s ⏱️ +9s
4 557 tests ±0  4 337 ✅ ±0  220 💤 ±0  0 ❌ ±0 
  211 runs  ±0    208 ✅ ±0    3 💤 ±0  0 ❌ ±0 

Results for commit fa03ab0. ± Comparison against base commit 1bc596e.

♻️ This comment has been updated with latest results.

This commit is made to prepare for Display#getDPI deprecation.
removing/replacing all unnecessary usages.
@HeikoKlare HeikoKlare merged commit d90d303 into eclipse-platform:master Dec 30, 2025
19 checks passed
@HeikoKlare HeikoKlare deleted the master-224-test branch December 30, 2025 15:10
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.

Mark Device::getDPI() method as deprecated

2 participants