Commit f62bc87
committed
Fix wrong cursor size when ImageData is unavailable at zoom
Previously, the cursor used DPIUtil.validateAndGetImageDataAtZoom() to
retrieve image data, which may return Imagedata at a different zoom
level than requested if ImageData for the exact zoom is unavailable.
This led to incorrect scaling when the returned image data was treated
as if it matched the requested zoom.
This commit replaces that logic with a temporary Image and calling
Image.getImageData(zoom) to retrieve image data for the requested zoom
level.1 parent 95b46b6 commit f62bc87
File tree
1 file changed
+3
-1
lines changed- bundles/org.eclipse.swt/Eclipse SWT/win32/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 | |
|---|---|---|---|
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
424 | | - | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
425 | 427 | | |
426 | 428 | | |
427 | 429 | | |
| |||
0 commit comments