Commit 7dcf570
committed
Use AutoScaleMethod "smooth" by default for fractional scaling
Currently, AutoScaleMethod "nearest" is used by default, leading to
jagged image scaling results. The method "Ssooth" is only used on GTK
with a fractional scaling value not being a multiple of 100.
The reason for not using "smooth" scaling on all platform was a bug
regarding icon transparency that has long been resolved.
With this change, AutoScaleMethod "smooth" is used by default in
fractional scaling scenarios (i.e., with deviceZoom not being an integer
multiple of 100) and when using monitor-specific scaling on Windows. To
still use "nearest" in these scenarios, it can be activated via system
property.1 parent c493ae8 commit 7dcf570
File tree
1 file changed
+4
-5
lines changed- bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal
1 file changed
+4
-5
lines changedLines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
86 | 85 | | |
87 | 86 | | |
88 | 87 | | |
| |||
605 | 604 | | |
606 | 605 | | |
607 | 606 | | |
608 | | - | |
| 607 | + | |
609 | 608 | | |
610 | 609 | | |
611 | 610 | | |
| |||
0 commit comments