Commit d39363c
[Win32] Correct zoom level used for image of decorations/shell eclipse-platform#2037
When setting the images for a decorations instance (in particular for a
shell) or when updating them upon a zoom change, the two images best
fitting to sizes required by the OS in their 100% version are
calculated. Then, however, a zoomed version of the image is used based
on the auto-scaled zoom of the decorations object. This zoom is,
however, completely unrelated to what is required, as the auto-scaled
zoom was not taken into account for identifying the best fitting image
before.
In the best case, a zoomed version of the image exactly fitting to the
size required by the OS would be generated. This would be possible via
auto-scaling the image (or in case of SVGs rendering it at the desired
size), but this would also lead to bad results if a simple auto-scaling
mode was used. Thus, the best possible solution is to use the 100%
version of the image, as its size does best fit to the required sizes as
conforming to the calculation done before.
Contributes to
eclipse-platform#20371 parent b0559a2 commit d39363c
File tree
1 file changed
+6
-6
lines changed- bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets
1 file changed
+6
-6
lines changedLines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
888 | 888 | | |
889 | 889 | | |
890 | 890 | | |
891 | | - | |
892 | | - | |
| 891 | + | |
| 892 | + | |
893 | 893 | | |
894 | 894 | | |
895 | | - | |
| 895 | + | |
896 | 896 | | |
897 | 897 | | |
898 | 898 | | |
899 | 899 | | |
900 | 900 | | |
901 | 901 | | |
902 | 902 | | |
903 | | - | |
904 | | - | |
| 903 | + | |
| 904 | + | |
905 | 905 | | |
906 | 906 | | |
907 | | - | |
| 907 | + | |
908 | 908 | | |
909 | 909 | | |
910 | 910 | | |
| |||
0 commit comments