Commit 22eece1
committed
Deprecate insufficient Display#setRescalingAtRuntime() method
The method Display#setRescalingAtRuntime() allows to activate the
monitor-specific scaling mechanism on Windows. This must, however,
actually be activated before the Display is instantiated, like it is
done during the Display constructor execution if the system property for
global activation of monitor-specific scaling is specified. In
consequence, calling #setRescalingAtRuntime() does not take the full
intended effect.
This change deprecates the method so that the system property needs to
be set for proper initialization of the monitor-specific scaling
functionality. It also adapts the according tests to the deprecation of
the API and alternatives to be used.1 parent e0b4fe9 commit 22eece1
File tree
4 files changed
+33
-9
lines changed- bundles/org.eclipse.swt
- Eclipse SWT Tests/win32/org/eclipse/swt/widgets
- Eclipse SWT
- cocoa/org/eclipse/swt/widgets
- gtk/org/eclipse/swt/widgets
- win32/org/eclipse/swt/widgets
4 files changed
+33
-9
lines changedLines changed: 18 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | | - | |
21 | | - | |
22 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
| 30 | + | |
26 | 31 | | |
| 32 | + | |
27 | 33 | | |
28 | 34 | | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
32 | 38 | | |
| 39 | + | |
33 | 40 | | |
| 41 | + | |
34 | 42 | | |
35 | 43 | | |
36 | 44 | | |
37 | 45 | | |
38 | 46 | | |
39 | 47 | | |
| 48 | + | |
40 | 49 | | |
| 50 | + | |
41 | 51 | | |
42 | 52 | | |
43 | 53 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6858 | 6858 | | |
6859 | 6859 | | |
6860 | 6860 | | |
| 6861 | + | |
| 6862 | + | |
6861 | 6863 | | |
| 6864 | + | |
6862 | 6865 | | |
6863 | 6866 | | |
6864 | 6867 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6294 | 6294 | | |
6295 | 6295 | | |
6296 | 6296 | | |
| 6297 | + | |
| 6298 | + | |
6297 | 6299 | | |
| 6300 | + | |
6298 | 6301 | | |
6299 | 6302 | | |
6300 | 6303 | | |
| |||
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
949 | 949 | | |
950 | 950 | | |
951 | 951 | | |
952 | | - | |
| 952 | + | |
953 | 953 | | |
954 | 954 | | |
955 | 955 | | |
| |||
5263 | 5263 | | |
5264 | 5264 | | |
5265 | 5265 | | |
| 5266 | + | |
5266 | 5267 | | |
5267 | 5268 | | |
5268 | 5269 | | |
| |||
5288 | 5289 | | |
5289 | 5290 | | |
5290 | 5291 | | |
| 5292 | + | |
| 5293 | + | |
5291 | 5294 | | |
| 5295 | + | |
5292 | 5296 | | |
| 5297 | + | |
| 5298 | + | |
| 5299 | + | |
| 5300 | + | |
5293 | 5301 | | |
5294 | 5302 | | |
5295 | 5303 | | |
| |||
0 commit comments