Commit b55ff03
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 #23851 parent e9225b5 commit b55ff03
File tree
2 files changed
+9
-2
lines changed- bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics
2 files changed
+9
-2
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1253 | 1253 | | |
1254 | 1254 | | |
1255 | 1255 | | |
1256 | | - | |
| 1256 | + | |
1257 | 1257 | | |
1258 | 1258 | | |
1259 | 1259 | | |
| |||
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
835 | 835 | | |
836 | 836 | | |
837 | 837 | | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
838 | 845 | | |
839 | 846 | | |
840 | 847 | | |
| |||
2312 | 2319 | | |
2313 | 2320 | | |
2314 | 2321 | | |
2315 | | - | |
| 2322 | + | |
2316 | 2323 | | |
2317 | 2324 | | |
2318 | 2325 | | |
| |||
0 commit comments