Commit d4c3036
committed
[win32] Foward native zoom to draw bitmap in GC
This commit adapts the logic when a bitmap or icon is drawn with the GC
in the windows implementation. As of now, the autoscale zoom was used to
identify the image handle to use. If the image is itself drawn with a
ImageGCDrawer, information about the original native zoom was lost, which
led to inconsistencies in fonts depending on the auto scale mode. This
commit fowards the native zoom in this case to enable the Image to
initialize the GC accordingly.
fixes #2385
fixes #23111 parent a71bea9 commit d4c3036
File tree
3 files changed
+30
-5
lines changed- bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics
3 files changed
+30
-5
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1253 | 1253 | | |
1254 | 1254 | | |
1255 | 1255 | | |
1256 | | - | |
| 1256 | + | |
1257 | 1257 | | |
1258 | 1258 | | |
1259 | 1259 | | |
| |||
4384 | 4384 | | |
4385 | 4385 | | |
4386 | 4386 | | |
4387 | | - | |
| 4387 | + | |
4388 | 4388 | | |
4389 | 4389 | | |
4390 | 4390 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
Lines changed: 26 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
809 | 809 | | |
810 | 810 | | |
811 | 811 | | |
812 | | - | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
813 | 817 | | |
814 | 818 | | |
815 | | - | |
| 819 | + | |
| 820 | + | |
816 | 821 | | |
817 | 822 | | |
818 | 823 | | |
| |||
1752 | 1757 | | |
1753 | 1758 | | |
1754 | 1759 | | |
| 1760 | + | |
1755 | 1761 | | |
1756 | 1762 | | |
1757 | 1763 | | |
| |||
1913 | 1919 | | |
1914 | 1920 | | |
1915 | 1921 | | |
| 1922 | + | |
| 1923 | + | |
| 1924 | + | |
| 1925 | + | |
1916 | 1926 | | |
1917 | 1927 | | |
1918 | 1928 | | |
| |||
2138 | 2148 | | |
2139 | 2149 | | |
2140 | 2150 | | |
| 2151 | + | |
| 2152 | + | |
| 2153 | + | |
| 2154 | + | |
| 2155 | + | |
| 2156 | + | |
| 2157 | + | |
| 2158 | + | |
2141 | 2159 | | |
2142 | 2160 | | |
2143 | 2161 | | |
2144 | 2162 | | |
2145 | 2163 | | |
2146 | 2164 | | |
2147 | 2165 | | |
2148 | | - | |
| 2166 | + | |
2149 | 2167 | | |
2150 | 2168 | | |
2151 | 2169 | | |
| |||
2577 | 2595 | | |
2578 | 2596 | | |
2579 | 2597 | | |
| 2598 | + | |
| 2599 | + | |
| 2600 | + | |
| 2601 | + | |
| 2602 | + | |
2580 | 2603 | | |
2581 | 2604 | | |
2582 | 2605 | | |
| |||
0 commit comments