Commit d6709a4
Scale Table.DRAG_IMAGE_SIZE by zoom level instead of using fixed pixels
The Table.DRAG_IMAGE_SIZE constant specifies the width of the drag image
when a table item is dragged. Previously, this value was fixed in
pixels, which caused the drag image to appear too small on high-DPI
monitors.
This change redefines DRAG_IMAGE_SIZE in points and converts it to
pixels based on the current zoom level, ensuring consistent drag image
sizing across different display scales.1 parent 2143c15 commit d6709a4
File tree
1 file changed
+3
-2
lines changed- bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets
1 file changed
+3
-2
lines changedLines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5745 | 5745 | | |
5746 | 5746 | | |
5747 | 5747 | | |
| 5748 | + | |
5748 | 5749 | | |
5749 | | - | |
| 5750 | + | |
5750 | 5751 | | |
5751 | 5752 | | |
5752 | 5753 | | |
| |||
5757 | 5758 | | |
5758 | 5759 | | |
5759 | 5760 | | |
5760 | | - | |
| 5761 | + | |
5761 | 5762 | | |
5762 | 5763 | | |
5763 | 5764 | | |
| |||
0 commit comments