Commit a68fd8d
committed
[Win32] Represent GC#getClipping(Region) operation in Region eclipse-platform#2346
The GC#getClipping(Region) call sets the passed region to the current
clipping region of the GC. Currently, this is not represented as an
operation inside the passed Region, such that when calculating a handle
for a different zoom of that region or when copying that region the
according application of GC#getClipping(Region) to that region is
missing.
This change adds the missing operation to the Region. Since the clipping
needs to be calculated at the of executing the GC#getClipping(Region)
method and not at the time of applying the region operation when
retrieving a handle, the GC#getClipping(Region) stores an operation
inside GC that maintains handles for the according clipping region at
the time of executing the GC#getClipping(Region) method for every zoom
at which the GC is requested. This ensures that the proper clipping
state is available to the Region.
Fixes eclipse-platform#23461 parent 0334215 commit a68fd8d
File tree
2 files changed
+134
-9
lines changed- bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics
2 files changed
+134
-9
lines changedLines changed: 47 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3790 | 3790 | | |
3791 | 3791 | | |
3792 | 3792 | | |
| 3793 | + | |
| 3794 | + | |
| 3795 | + | |
| 3796 | + | |
| 3797 | + | |
| 3798 | + | |
| 3799 | + | |
| 3800 | + | |
| 3801 | + | |
| 3802 | + | |
| 3803 | + | |
| 3804 | + | |
| 3805 | + | |
| 3806 | + | |
| 3807 | + | |
| 3808 | + | |
| 3809 | + | |
| 3810 | + | |
| 3811 | + | |
| 3812 | + | |
| 3813 | + | |
| 3814 | + | |
| 3815 | + | |
| 3816 | + | |
| 3817 | + | |
| 3818 | + | |
| 3819 | + | |
| 3820 | + | |
| 3821 | + | |
| 3822 | + | |
| 3823 | + | |
| 3824 | + | |
| 3825 | + | |
| 3826 | + | |
| 3827 | + | |
| 3828 | + | |
| 3829 | + | |
| 3830 | + | |
3793 | 3831 | | |
3794 | 3832 | | |
3795 | 3833 | | |
| |||
3799 | 3837 | | |
3800 | 3838 | | |
3801 | 3839 | | |
3802 | | - | |
| 3840 | + | |
3803 | 3841 | | |
3804 | 3842 | | |
3805 | 3843 | | |
| |||
3812 | 3850 | | |
3813 | 3851 | | |
3814 | 3852 | | |
3815 | | - | |
| 3853 | + | |
3816 | 3854 | | |
3817 | 3855 | | |
3818 | 3856 | | |
3819 | | - | |
| 3857 | + | |
3820 | 3858 | | |
3821 | 3859 | | |
3822 | 3860 | | |
3823 | | - | |
| 3861 | + | |
3824 | 3862 | | |
3825 | 3863 | | |
3826 | 3864 | | |
3827 | | - | |
| 3865 | + | |
3828 | 3866 | | |
3829 | | - | |
| 3867 | + | |
3830 | 3868 | | |
3831 | 3869 | | |
3832 | 3870 | | |
3833 | 3871 | | |
3834 | | - | |
| 3872 | + | |
3835 | 3873 | | |
3836 | 3874 | | |
3837 | 3875 | | |
| |||
3848 | 3886 | | |
3849 | 3887 | | |
3850 | 3888 | | |
3851 | | - | |
| 3889 | + | |
3852 | 3890 | | |
3853 | 3891 | | |
3854 | 3892 | | |
| 3893 | + | |
3855 | 3894 | | |
3856 | 3895 | | |
3857 | 3896 | | |
| |||
Lines changed: 87 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| |||
171 | 173 | | |
172 | 174 | | |
173 | 175 | | |
| 176 | + | |
174 | 177 | | |
175 | 178 | | |
176 | 179 | | |
177 | 180 | | |
178 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
179 | 188 | | |
180 | 189 | | |
181 | 190 | | |
| |||
373 | 382 | | |
374 | 383 | | |
375 | 384 | | |
| 385 | + | |
376 | 386 | | |
377 | 387 | | |
378 | 388 | | |
| |||
468 | 478 | | |
469 | 479 | | |
470 | 480 | | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
471 | 496 | | |
472 | 497 | | |
473 | 498 | | |
| |||
559 | 584 | | |
560 | 585 | | |
561 | 586 | | |
| 587 | + | |
562 | 588 | | |
563 | 589 | | |
564 | 590 | | |
| |||
612 | 638 | | |
613 | 639 | | |
614 | 640 | | |
615 | | - | |
| 641 | + | |
| 642 | + | |
616 | 643 | | |
617 | 644 | | |
618 | 645 | | |
| |||
646 | 673 | | |
647 | 674 | | |
648 | 675 | | |
| 676 | + | |
649 | 677 | | |
650 | 678 | | |
651 | 679 | | |
| |||
705 | 733 | | |
706 | 734 | | |
707 | 735 | | |
| 736 | + | |
| 737 | + | |
708 | 738 | | |
709 | 739 | | |
710 | 740 | | |
| |||
722 | 752 | | |
723 | 753 | | |
724 | 754 | | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
725 | 760 | | |
726 | 761 | | |
727 | 762 | | |
| |||
780 | 815 | | |
781 | 816 | | |
782 | 817 | | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
783 | 823 | | |
784 | 824 | | |
785 | 825 | | |
| |||
827 | 867 | | |
828 | 868 | | |
829 | 869 | | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
830 | 875 | | |
831 | 876 | | |
832 | 877 | | |
| |||
858 | 903 | | |
859 | 904 | | |
860 | 905 | | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
861 | 911 | | |
862 | 912 | | |
863 | 913 | | |
| |||
883 | 933 | | |
884 | 934 | | |
885 | 935 | | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
886 | 972 | | |
887 | 973 | | |
0 commit comments