Commit 4b00a40
committed
Change monitor-specific scaling setting before Display creation
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 VM argument for
global activation of monitor-specific scaling is specified. In
consequence, calling #setRescalingAtRuntime() does not take the full
intended effect.
This change deprecated the method (along with its according
accessor #isRescalingAtRuntime()) and adds a new method to activate
monitor-specific scaling on the Display class instead of an instance to
be used for subsequent displays to be instantiated.1 parent 950ca8a commit 4b00a40
File tree
3 files changed
+76
-1
lines changed- bundles/org.eclipse.swt/Eclipse SWT
- cocoa/org/eclipse/swt/widgets
- gtk/org/eclipse/swt/widgets
- win32/org/eclipse/swt/widgets
3 files changed
+76
-1
lines changedLines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6833 | 6833 | | |
6834 | 6834 | | |
6835 | 6835 | | |
| 6836 | + | |
| 6837 | + | |
| 6838 | + | |
| 6839 | + | |
| 6840 | + | |
| 6841 | + | |
| 6842 | + | |
| 6843 | + | |
| 6844 | + | |
| 6845 | + | |
| 6846 | + | |
| 6847 | + | |
| 6848 | + | |
| 6849 | + | |
| 6850 | + | |
| 6851 | + | |
6836 | 6852 | | |
6837 | 6853 | | |
6838 | 6854 | | |
| |||
6841 | 6857 | | |
6842 | 6858 | | |
6843 | 6859 | | |
| 6860 | + | |
| 6861 | + | |
6844 | 6862 | | |
| 6863 | + | |
6845 | 6864 | | |
6846 | 6865 | | |
6847 | 6866 | | |
| |||
6858 | 6877 | | |
6859 | 6878 | | |
6860 | 6879 | | |
| 6880 | + | |
| 6881 | + | |
| 6882 | + | |
| 6883 | + | |
6861 | 6884 | | |
| 6885 | + | |
6862 | 6886 | | |
6863 | 6887 | | |
6864 | 6888 | | |
| |||
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6269 | 6269 | | |
6270 | 6270 | | |
6271 | 6271 | | |
| 6272 | + | |
| 6273 | + | |
| 6274 | + | |
| 6275 | + | |
| 6276 | + | |
| 6277 | + | |
| 6278 | + | |
| 6279 | + | |
| 6280 | + | |
| 6281 | + | |
| 6282 | + | |
| 6283 | + | |
| 6284 | + | |
| 6285 | + | |
| 6286 | + | |
| 6287 | + | |
6272 | 6288 | | |
6273 | 6289 | | |
6274 | 6290 | | |
| |||
6277 | 6293 | | |
6278 | 6294 | | |
6279 | 6295 | | |
| 6296 | + | |
| 6297 | + | |
6280 | 6298 | | |
| 6299 | + | |
6281 | 6300 | | |
6282 | 6301 | | |
6283 | 6302 | | |
| |||
6294 | 6313 | | |
6295 | 6314 | | |
6296 | 6315 | | |
| 6316 | + | |
| 6317 | + | |
| 6318 | + | |
| 6319 | + | |
6297 | 6320 | | |
| 6321 | + | |
6298 | 6322 | | |
6299 | 6323 | | |
6300 | 6324 | | |
| |||
Lines changed: 28 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
142 | 143 | | |
143 | 144 | | |
144 | 145 | | |
| |||
948 | 949 | | |
949 | 950 | | |
950 | 951 | | |
951 | | - | |
| 952 | + | |
952 | 953 | | |
953 | 954 | | |
954 | 955 | | |
| |||
5270 | 5271 | | |
5271 | 5272 | | |
5272 | 5273 | | |
| 5274 | + | |
| 5275 | + | |
| 5276 | + | |
| 5277 | + | |
| 5278 | + | |
| 5279 | + | |
| 5280 | + | |
| 5281 | + | |
| 5282 | + | |
| 5283 | + | |
| 5284 | + | |
| 5285 | + | |
| 5286 | + | |
| 5287 | + | |
| 5288 | + | |
| 5289 | + | |
| 5290 | + | |
| 5291 | + | |
5273 | 5292 | | |
5274 | 5293 | | |
5275 | 5294 | | |
| |||
5278 | 5297 | | |
5279 | 5298 | | |
5280 | 5299 | | |
| 5300 | + | |
| 5301 | + | |
5281 | 5302 | | |
| 5303 | + | |
5282 | 5304 | | |
5283 | 5305 | | |
5284 | 5306 | | |
| |||
5295 | 5317 | | |
5296 | 5318 | | |
5297 | 5319 | | |
| 5320 | + | |
| 5321 | + | |
| 5322 | + | |
| 5323 | + | |
5298 | 5324 | | |
| 5325 | + | |
5299 | 5326 | | |
5300 | 5327 | | |
5301 | 5328 | | |
| |||
0 commit comments