Skip to content

Conversation

@fedejeanne
Copy link
Member

@fedejeanne fedejeanne commented Feb 6, 2025

When switching back to a monitor with a zoom level of 100, switch back to the "nearest" scale method.

Smooth scaling is used if:

  • (in Windows) Monitor-specific scaling is active and the zoom level is not 100
  • (in Linux) if the zoom level of the monitor is divisible by 100 but it is not exactly 100
  • (in Mac) never

How to test

  • 100% monitor
  • Other monitor with zoom level != 100
  • Start the ControlExample with the following VM parameters:
-Dswt.autoScale=quarter
-Dswt.autoScale.updateOnRuntime=true
  • Move the application back and forth between the monitors

The autoScaleMethod should be set to NEAREST in org.eclipse.swt.internal.DPIUtil.setDeviceZoom(int) every time the application goes back the100% monitor.

Important

When switching back to a monitor with a zoom level of 100, switch back
to the "nearest" scale method.
@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2025

Test Results

   502 files  ±0     502 suites  ±0   9m 58s ⏱️ -2s
 4 334 tests ±0   4 320 ✅ ±0   14 💤 ±0  0 ❌ ±0 
16 575 runs  ±0  16 466 ✅ ±0  109 💤 ±0  0 ❌ ±0 

Results for commit 1b6ce65. ± Comparison against base commit 54dad6c.

@fedejeanne fedejeanne marked this pull request as ready for review February 7, 2025 07:06
@fedejeanne fedejeanne marked this pull request as draft February 7, 2025 07:09
@fedejeanne
Copy link
Member Author

Replaced by #1809

@fedejeanne fedejeanne closed this Feb 7, 2025
@fedejeanne fedejeanne deleted the use_nearest_on_100 branch February 7, 2025 08:27
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.

Unintended initial state (and switch) of the auto-scale mode

1 participant