Commit 24c8513
committed
Only consider rescaling at runtime enabled when DPI awareness mode fits
Activating rescaling at runtime requires a proper DPI awareness mode to
be set. Currently, if setting the DPI awareness mode fails, rescaling
may still be activated if the user requested to. With this change,
setting the rescaling mode of a Display ensures that the correct DPI
awareness for the UI thread is set and, in case an error occurs, the
rescaling mode is not changed. It also adapts some faulty constants and
provides according test cases for setting the rescaling behavior.1 parent 5a7f375 commit 24c8513
File tree
5 files changed
+84
-21
lines changed- bundles/org.eclipse.swt
- Eclipse SWT PI/win32/org/eclipse/swt/internal/win32
- 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
5 files changed
+84
-21
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
372 | | - | |
373 | | - | |
| 372 | + | |
| 373 | + | |
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
| |||
Lines changed: 55 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6856 | 6856 | | |
6857 | 6857 | | |
6858 | 6858 | | |
| 6859 | + | |
6859 | 6860 | | |
6860 | 6861 | | |
6861 | | - | |
| 6862 | + | |
6862 | 6863 | | |
| 6864 | + | |
6863 | 6865 | | |
6864 | 6866 | | |
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6290 | 6290 | | |
6291 | 6291 | | |
6292 | 6292 | | |
| 6293 | + | |
6293 | 6294 | | |
6294 | 6295 | | |
6295 | | - | |
| 6296 | + | |
6296 | 6297 | | |
| 6298 | + | |
6297 | 6299 | | |
6298 | 6300 | | |
6299 | 6301 | | |
Lines changed: 21 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5272 | 5272 | | |
5273 | 5273 | | |
5274 | 5274 | | |
| 5275 | + | |
5275 | 5276 | | |
5276 | 5277 | | |
5277 | | - | |
5278 | | - | |
5279 | | - | |
5280 | | - | |
5281 | | - | |
| 5278 | + | |
| 5279 | + | |
| 5280 | + | |
| 5281 | + | |
| 5282 | + | |
| 5283 | + | |
| 5284 | + | |
| 5285 | + | |
| 5286 | + | |
5282 | 5287 | | |
5283 | 5288 | | |
5284 | | - | |
5285 | | - | |
| 5289 | + | |
5286 | 5290 | | |
5287 | 5291 | | |
5288 | | - | |
| 5292 | + | |
5289 | 5293 | | |
5290 | | - | |
5291 | | - | |
5292 | | - | |
| 5294 | + | |
| 5295 | + | |
| 5296 | + | |
| 5297 | + | |
| 5298 | + | |
5293 | 5299 | | |
5294 | 5300 | | |
5295 | | - | |
5296 | | - | |
5297 | | - | |
| 5301 | + | |
| 5302 | + | |
5298 | 5303 | | |
5299 | 5304 | | |
5300 | | - | |
5301 | | - | |
5302 | | - | |
5303 | 5305 | | |
5304 | 5306 | | |
5305 | 5307 | | |
| 5308 | + | |
5306 | 5309 | | |
| 5310 | + | |
5307 | 5311 | | |
5308 | 5312 | | |
5309 | 5313 | | |
0 commit comments