You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[MacOS] Fix getBounds for Image based on ImageGcDrawer
When running with a device zoom of 200, the bounds of images created
with an ImageGcDrawer have double the expected size. The reason is that
the image is initialized with image data at zoom 200, from which also
the width and height are retrieved. The used initialization logic does,
however, always expect image data at zoom 100 to be passed.
This change fixes the initialization of images based on ImageGcDrawer to
create both the 100 and 200 image data version and correctly initialize
the image metadata with the former. The according test case is extended
to validate the bounds in pixels of images not only against the bounds
if the image but also against the expected/initial bounds.
Copy file name to clipboardExpand all lines: tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_Image.java
+15-10Lines changed: 15 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -759,8 +759,8 @@ public void test_getBounds() {
0 commit comments