Commit c1ee9dd
committed
Fixing transparency on scaled variant of cursor with source and mask
When creating a custom cursor using source and mask ImageData, the
transparency mask does not scale correctly when applying
DPIUtil.autoScaleImageData() in a multi-monitor setup with different DPI
settings. With this change we use scaleTo method to scale the data.1 parent ce98326 commit c1ee9dd
File tree
1 file changed
+10
-6
lines changed- bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics
1 file changed
+10
-6
lines changedLines changed: 10 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
681 | 681 | | |
682 | 682 | | |
683 | 683 | | |
684 | | - | |
685 | | - | |
686 | | - | |
687 | | - | |
688 | | - | |
689 | | - | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
690 | 694 | | |
691 | 695 | | |
692 | 696 | | |
| |||
0 commit comments