Skip to content

Conversation

@HeikoKlare
Copy link
Contributor

The activation of monitor-specific rescaling on Windows currently relies on the method Display#setRescalingAtRuntime(), which was found to not take the full intended effect.

This change thus replaces the call to that method based on the value of the according experimental preference by setting the according system property to activate that behavior in a proper way. It also removes the obsolete activation of Edge when the experimental preference is set, as Edge has been enabled by default.

Adapts to eclipse-platform/eclipse.platform.swt#1720

Requires eclipse-platform/eclipse.platform.swt#1719

@HeikoKlare HeikoKlare force-pushed the correct-monitor-specific-scaling-activation branch from 45483b1 to 55892dc Compare January 13, 2025 15:57
@HeikoKlare HeikoKlare requested a review from fedejeanne January 13, 2025 15:58
@HeikoKlare
Copy link
Contributor Author

@akoch-yatta

@github-actions
Copy link
Contributor

github-actions bot commented Jan 13, 2025

Test Results

 1 818 files  ±0   1 818 suites  ±0   1h 32m 15s ⏱️ +58s
 7 733 tests ±0   7 504 ✅  - 1  228 💤 ±0  1 ❌ +1 
24 360 runs  ±0  23 610 ✅  - 1  749 💤 ±0  1 ❌ +1 

For more details on these failures, see this check.

Results for commit 19e3364. ± Comparison against base commit 904bdd7.

♻️ This comment has been updated with latest results.

Copy link
Member

@fedejeanne fedejeanne left a comment

Choose a reason for hiding this comment

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

Looks good and works as expected, I only have 2 minor comments regarding coding practices.

The activation of monitor-specific rescaling on Windows currently relies
on the method Display#setRescalingAtRuntime(), which was found to not
take the full intended effect.

This change thus replaces the call to that method based on the value of
the according experimental preference by setting the according system
property to activate that behavior in a proper way. It also removes the
obsolete activation of Edge when the experimental preference is set, as
Edge has been enabled by default.
@HeikoKlare HeikoKlare force-pushed the correct-monitor-specific-scaling-activation branch from 55892dc to 19e3364 Compare January 14, 2025 14:19
@akoch-yatta
Copy link
Contributor

Looks good to me as well.

@HeikoKlare
Copy link
Contributor Author

Required SWT PR has been merged. Failing test is unrelated and documented: #867

@HeikoKlare HeikoKlare merged commit 74efba4 into eclipse-platform:master Jan 14, 2025
15 of 17 checks passed
@HeikoKlare HeikoKlare deleted the correct-monitor-specific-scaling-activation branch January 14, 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.

3 participants