Commit eb0f6a6
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 78d499e commit eb0f6a6
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 | |
|---|---|---|---|
| |||
6071 | 6071 | | |
6072 | 6072 | | |
6073 | 6073 | | |
| 6074 | + | |
6074 | 6075 | | |
6075 | | - | |
| 6076 | + | |
6076 | 6077 | | |
6077 | 6078 | | |
6078 | 6079 | | |
| |||
6086 | 6087 | | |
6087 | 6088 | | |
6088 | 6089 | | |
6089 | | - | |
| 6090 | + | |
6090 | 6091 | | |
6091 | 6092 | | |
6092 | 6093 | | |
| |||
0 commit comments