Commit 2b1a0f2
committed
Scale Tree.DRAG_IMAGE_SIZE by zoom level instead of using fixed pixels
The Tree.DRAG_IMAGE_SIZE constant specifies the width of the drag image
when a
tree 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 93a484e commit 2b1a0f2
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 | |
|---|---|---|---|
| |||
6072 | 6072 | | |
6073 | 6073 | | |
6074 | 6074 | | |
6075 | | - | |
| 6075 | + | |
6076 | 6076 | | |
6077 | 6077 | | |
6078 | 6078 | | |
| |||
6086 | 6086 | | |
6087 | 6087 | | |
6088 | 6088 | | |
6089 | | - | |
| 6089 | + | |
6090 | 6090 | | |
6091 | 6091 | | |
6092 | 6092 | | |
| |||
0 commit comments