Commit 03cc46e
[Win32] Autoscale cursor even on widgets that have autoscaling disabled
Cursors are initialized with the zoom of the control on which they are
set. However, cursors are usually expected to scale according to the
autoscaled UI around those controls for which autoscaling was disabled.
This change adapts the cursor initializations to use the autoscale zoom
of the containing shell instead of the zoom of the control itself. In
consequence, cursors will have the same size in the whole shell, no
matter on which control they are set.1 parent 55b5adf commit 03cc46e
File tree
4 files changed
+13
-6
lines changed- bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets
4 files changed
+13
-6
lines changedLines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1283 | 1283 | | |
1284 | 1284 | | |
1285 | 1285 | | |
1286 | | - | |
| 1286 | + | |
1287 | 1287 | | |
1288 | 1288 | | |
1289 | 1289 | | |
| |||
4817 | 4817 | | |
4818 | 4818 | | |
4819 | 4819 | | |
| 4820 | + | |
| 4821 | + | |
| 4822 | + | |
| 4823 | + | |
| 4824 | + | |
| 4825 | + | |
| 4826 | + | |
4820 | 4827 | | |
4821 | 4828 | | |
4822 | 4829 | | |
| |||
5503 | 5510 | | |
5504 | 5511 | | |
5505 | 5512 | | |
5506 | | - | |
| 5513 | + | |
5507 | 5514 | | |
5508 | 5515 | | |
5509 | 5516 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2719 | 2719 | | |
2720 | 2720 | | |
2721 | 2721 | | |
2722 | | - | |
| 2722 | + | |
2723 | 2723 | | |
2724 | 2724 | | |
2725 | 2725 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
823 | 823 | | |
824 | 824 | | |
825 | 825 | | |
826 | | - | |
| 826 | + | |
827 | 827 | | |
828 | 828 | | |
829 | 829 | | |
| |||
892 | 892 | | |
893 | 893 | | |
894 | 894 | | |
895 | | - | |
| 895 | + | |
896 | 896 | | |
897 | 897 | | |
898 | 898 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4665 | 4665 | | |
4666 | 4666 | | |
4667 | 4667 | | |
4668 | | - | |
| 4668 | + | |
4669 | 4669 | | |
4670 | 4670 | | |
4671 | 4671 | | |
| |||
0 commit comments