Commit e424717
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 1eabfa3 commit e424717
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 | |
|---|---|---|---|
| |||
684 | 684 | | |
685 | 685 | | |
686 | 686 | | |
687 | | - | |
688 | | - | |
689 | | - | |
690 | | - | |
691 | | - | |
692 | | - | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
693 | 697 | | |
694 | 698 | | |
695 | 699 | | |
| |||
0 commit comments