Commit 819c1c3
committed
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 d5dc661 commit 819c1c3
File tree
1 file changed
+2
-2
lines changed- bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5746 | 5746 | | |
5747 | 5747 | | |
5748 | 5748 | | |
5749 | | - | |
| 5749 | + | |
5750 | 5750 | | |
5751 | 5751 | | |
5752 | 5752 | | |
| |||
5757 | 5757 | | |
5758 | 5758 | | |
5759 | 5759 | | |
5760 | | - | |
| 5760 | + | |
5761 | 5761 | | |
5762 | 5762 | | |
5763 | 5763 | | |
| |||
0 commit comments