Commit a84a61b
committed
Replace getDeviceZoom() call in ImageTransfer class #194
Previously, when copying an image in the clipboard example, the image at
the current zoom level was stored to clipboard using
getImageDataAtCurrentZoom(). However, in normal Windows behavior (e.g.,
Paint), images are always copied at their original size regardless of
the current zoom. When pasting, the image is pasted at 100% zoom, and
the application handles zoom internally when displaying the image.
To match this behavior, copy and paste now always handle images at 100%
scale, ignoring the current zoom and leaving zoom handling to the image
class when it is fetched for display.
Fixes vi-eclipse/Eclipse-Platform#1941 parent 8b45dd8 commit a84a61b
File tree
2 files changed
+6
-40
lines changed- bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd
- examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/clipboard
2 files changed
+6
-40
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
184 | 183 | | |
185 | 184 | | |
186 | 185 | | |
187 | | - | |
188 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| |||
Lines changed: 3 additions & 37 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
62 | 61 | | |
63 | 62 | | |
64 | 63 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | 64 | | |
98 | 65 | | |
99 | 66 | | |
| |||
476 | 443 | | |
477 | 444 | | |
478 | 445 | | |
479 | | - | |
480 | | - | |
| 446 | + | |
| 447 | + | |
481 | 448 | | |
482 | 449 | | |
483 | 450 | | |
| |||
540 | 507 | | |
541 | 508 | | |
542 | 509 | | |
543 | | - | |
544 | | - | |
| 510 | + | |
545 | 511 | | |
546 | 512 | | |
547 | 513 | | |
| |||
0 commit comments