Commit 4959087
committed
Adapt Win32 launcher DPI awareness and autoscale configuration
Eclipse products use monitor-specific scaling by default for several
releases. The products apply that scaling to the window created for the
workbench and adapt the DPI awareness for the UI thread of that window.
The whole process was still executed in "System" DPI awareness (used
before monitor-specific scaling was available) as defined by the Equinox
launcher's manifest. Since SWT also still used non-monitor-specific
scaling as default, the splash screen initialized by the Equinox
launcher was still processed without monitor-specific scaling.
With SWT using monitor-specific scaling on Windows by default, a fitting
process DPI awareness ("PerMonitorV2") must be used by Equinox native
launcher to have a proper splash screen experience. In addition, this
will adapt the Equinox launcher to the current defaults of Eclipse
products and of the JDK itself (which by default uses PerMonitorV2 as
well).
As with monitor-specific scaling the default swt.autoScale value on
Windows changes from "integer" to "quarter", this behavior is also
adapted to align with the implementation in SWT's DPIUtil. If
monitor-specific scaling is deactivated via system property, the
swt.autoScale value still defaults to "integer", also conforming to SWT
behavior.1 parent 57fa623 commit 4959087
File tree
2 files changed
+10
-2
lines changed- features/org.eclipse.equinox.executable.feature/library/win32
2 files changed
+10
-2
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
| 321 | + | |
321 | 322 | | |
322 | 323 | | |
323 | 324 | | |
324 | 325 | | |
325 | 326 | | |
326 | | - | |
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
| |||
699 | 699 | | |
700 | 700 | | |
701 | 701 | | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
702 | 710 | | |
703 | | - | |
704 | 711 | | |
705 | 712 | | |
706 | 713 | | |
| |||
0 commit comments