Skip to content

Conversation

@HeikoKlare
Copy link
Contributor

Smooth scaling of images is currently enabled in an OS-dependent way. An according provider is registered in DPIUtil by the OS-specific DPI utility classes. This is overly complex and, more severely, not correct. The provider is registered via the static initializers of the OS-specific DPI utility classes, but they may never be used or at least not before images are scaled for the first time. In such cases, the provider may not be registered as the class loader has never initialized the class.

This change moves the smooth-scaling initialization to the DPIUtil class, simplifying the code and reducing the risk of faulty behavior because of missing class loading of OS-dependent utility classes.

Smooth scaling of images is currently enabled in an OS-dependent way. An
according provider is registered in DPIUtil by the OS-specific DPI
utility classes. This is overly complex and, more severely, not correct.
The provider is registered via the static initializers of the
OS-specific DPI utility classes, but they may never be used or at least
not before images are scaled for the first time. In such cases, the
provider may not be registered as the class loader has never initialized
the class.

This change moves the smooth-scaling initialization to the DPIUtil
class, simplifying the code and reducing the risk of faulty behavior
because of missing class loading of OS-dependent utility classes.
@github-actions
Copy link
Contributor

Test Results

  176 files  ±0    176 suites  ±0   25m 46s ⏱️ -11s
4 680 tests ±0  4 658 ✅ ±0  22 💤 ±0  0 ❌ ±0 
  485 runs  ±0    479 ✅ ±0   6 💤 ±0  0 ❌ ±0 

Results for commit 44586d6. ± Comparison against base commit 37d0656.

@HeikoKlare HeikoKlare merged commit b044bef into eclipse-platform:master Jan 17, 2026
23 checks passed
@HeikoKlare HeikoKlare deleted the smoothscaling-initalization branch January 17, 2026 10:07
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.

1 participant