Commit 2e13c10
committed
[win32] ImageList#getImageSize should always return value in points
This commit clarifies the contract of ImageList#getImageSize in the
windows implementation to always return a value in points. Historically
it returned values in pixel. This worked until recent changes in
ImageList to support and handle multiple OS image list handles to support
monitor specific scaling. Because of the change the ImageList size in
pixels depends on the target zoom the ImageList will be used with.
Because of this the method is adapted to return a value in points. All
callers of this method are adapted accordingly to scale the value to
pixels matching the zoom of the Widget if necessary.1 parent 15f6cc4 commit 2e13c10
File tree
7 files changed
+39
-35
lines changed- bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt
- internal
- widgets
7 files changed
+39
-35
lines changedLines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
362 | 366 | | |
363 | 367 | | |
364 | 368 | | |
365 | | - | |
| 369 | + | |
366 | 370 | | |
367 | 371 | | |
368 | 372 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2062 | 2062 | | |
2063 | 2063 | | |
2064 | 2064 | | |
2065 | | - | |
| 2065 | + | |
2066 | 2066 | | |
2067 | 2067 | | |
2068 | 2068 | | |
| |||
2092 | 2092 | | |
2093 | 2093 | | |
2094 | 2094 | | |
2095 | | - | |
| 2095 | + | |
2096 | 2096 | | |
2097 | 2097 | | |
2098 | 2098 | | |
| |||
2122 | 2122 | | |
2123 | 2123 | | |
2124 | 2124 | | |
2125 | | - | |
| 2125 | + | |
2126 | 2126 | | |
2127 | 2127 | | |
2128 | 2128 | | |
| |||
2152 | 2152 | | |
2153 | 2153 | | |
2154 | 2154 | | |
2155 | | - | |
| 2155 | + | |
2156 | 2156 | | |
2157 | 2157 | | |
2158 | 2158 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
458 | | - | |
459 | | - | |
| 458 | + | |
| 459 | + | |
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
| |||
837 | 837 | | |
838 | 838 | | |
839 | 839 | | |
840 | | - | |
| 840 | + | |
841 | 841 | | |
842 | | - | |
| 842 | + | |
843 | 843 | | |
844 | 844 | | |
845 | 845 | | |
| |||
Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2849 | 2849 | | |
2850 | 2850 | | |
2851 | 2851 | | |
2852 | | - | |
2853 | | - | |
| 2852 | + | |
| 2853 | + | |
2854 | 2854 | | |
2855 | 2855 | | |
2856 | 2856 | | |
| |||
2889 | 2889 | | |
2890 | 2890 | | |
2891 | 2891 | | |
2892 | | - | |
2893 | | - | |
| 2892 | + | |
| 2893 | + | |
2894 | 2894 | | |
2895 | 2895 | | |
2896 | 2896 | | |
| |||
5576 | 5576 | | |
5577 | 5577 | | |
5578 | 5578 | | |
5579 | | - | |
| 5579 | + | |
5580 | 5580 | | |
5581 | | - | |
| 5581 | + | |
5582 | 5582 | | |
5583 | 5583 | | |
5584 | 5584 | | |
| |||
5595 | 5595 | | |
5596 | 5596 | | |
5597 | 5597 | | |
5598 | | - | |
| 5598 | + | |
5599 | 5599 | | |
5600 | | - | |
| 5600 | + | |
5601 | 5601 | | |
5602 | 5602 | | |
5603 | 5603 | | |
| |||
7297 | 7297 | | |
7298 | 7298 | | |
7299 | 7299 | | |
7300 | | - | |
| 7300 | + | |
7301 | 7301 | | |
7302 | 7302 | | |
7303 | 7303 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1272 | 1272 | | |
1273 | 1273 | | |
1274 | 1274 | | |
1275 | | - | |
1276 | | - | |
1277 | | - | |
1278 | | - | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
1279 | 1279 | | |
1280 | 1280 | | |
1281 | 1281 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1103 | 1103 | | |
1104 | 1104 | | |
1105 | 1105 | | |
1106 | | - | |
| 1106 | + | |
1107 | 1107 | | |
1108 | 1108 | | |
1109 | | - | |
| 1109 | + | |
1110 | 1110 | | |
1111 | 1111 | | |
1112 | | - | |
| 1112 | + | |
1113 | 1113 | | |
1114 | 1114 | | |
1115 | | - | |
| 1115 | + | |
1116 | 1116 | | |
1117 | 1117 | | |
1118 | 1118 | | |
| |||
Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3058 | 3058 | | |
3059 | 3059 | | |
3060 | 3060 | | |
3061 | | - | |
| 3061 | + | |
3062 | 3062 | | |
3063 | 3063 | | |
3064 | 3064 | | |
| |||
3740 | 3740 | | |
3741 | 3741 | | |
3742 | 3742 | | |
3743 | | - | |
3744 | | - | |
| 3743 | + | |
| 3744 | + | |
3745 | 3745 | | |
3746 | 3746 | | |
3747 | 3747 | | |
| |||
3764 | 3764 | | |
3765 | 3765 | | |
3766 | 3766 | | |
3767 | | - | |
3768 | | - | |
| 3767 | + | |
| 3768 | + | |
3769 | 3769 | | |
3770 | 3770 | | |
3771 | 3771 | | |
| |||
5791 | 5791 | | |
5792 | 5792 | | |
5793 | 5793 | | |
5794 | | - | |
| 5794 | + | |
5795 | 5795 | | |
5796 | | - | |
| 5796 | + | |
5797 | 5797 | | |
5798 | 5798 | | |
5799 | 5799 | | |
| |||
5808 | 5808 | | |
5809 | 5809 | | |
5810 | 5810 | | |
5811 | | - | |
| 5811 | + | |
5812 | 5812 | | |
5813 | | - | |
| 5813 | + | |
5814 | 5814 | | |
5815 | 5815 | | |
5816 | 5816 | | |
| |||
0 commit comments