Commit 60ef7e9
committed
[MacOS] Fix width/height of Images created via ImageGcDrawer
The current implementation of the Image constructor accepting an
ImageGcDrawer does initialize the image with the given width and height
but extracts them from the image data being initialized with the
ImageGcDrawer. This does not take the current device zoom into account
properly, leading to images unexpectedly being rendered for 100% scaling
while they are supposed to be used at 200% scaling.
With this change, images are properly initialized with the given width
and height and using the according device zoom for the image data
generation, leading to a sharp initialization also on 200% monitors.
Serves as a fix for the MacOS part of issue
eclipse-platform/eclipse.platform.ui#27401 parent ffa1084 commit 60ef7e9
File tree
1 file changed
+3
-1
lines changed- bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics
1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
872 | 872 | | |
873 | 873 | | |
874 | 874 | | |
875 | | - | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
876 | 878 | | |
877 | 879 | | |
878 | 880 | | |
| |||
0 commit comments