Commit 75c97fd
[Win32] Improve StyledText caret scaling on DPI change
This commit replaces the win32-specific caret scaling with API-based
resizing to ensure proper repaint on DPI changes. Carets now update
location/size via resize() in their DPI change handlers, removing
platform dependencies. Additionally, StyledTexts set location, size and
visibility of their carets first before calling the DPI change handler
of Caret to make sure when Caret is repainted, the size, location and
visibility are properly set.1 parent 440c97a commit 75c97fd
File tree
3 files changed
+5
-31
lines changed- bundles/org.eclipse.swt
- Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom
- Eclipse SWT/win32/org/eclipse/swt
- internal
- widgets
3 files changed
+5
-31
lines changedLines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10912 | 10912 | | |
10913 | 10913 | | |
10914 | 10914 | | |
10915 | | - | |
10916 | | - | |
| 10915 | + | |
| 10916 | + | |
| 10917 | + | |
10917 | 10918 | | |
| 10919 | + | |
10918 | 10920 | | |
10919 | 10921 | | |
10920 | 10922 | | |
10921 | 10923 | | |
10922 | 10924 | | |
10923 | 10925 | | |
10924 | 10926 | | |
10925 | | - | |
10926 | | - | |
10927 | | - | |
10928 | 10927 | | |
10929 | 10928 | | |
10930 | 10929 | | |
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | 54 | | |
57 | 55 | | |
58 | | - | |
59 | 56 | | |
60 | 57 | | |
61 | 58 | | |
| |||
Lines changed: 1 addition & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
658 | 658 | | |
659 | 659 | | |
660 | 660 | | |
661 | | - | |
662 | | - | |
663 | | - | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | | - | |
684 | 661 | | |
685 | 662 | | |
686 | 663 | | |
| |||
694 | 671 | | |
695 | 672 | | |
696 | 673 | | |
| 674 | + | |
697 | 675 | | |
698 | 676 | | |
699 | 677 | | |
0 commit comments