Commit 9d56f06
committed
[Win32] Represent GC#getClipping(Region) operation in Region #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 #23471 parent 5f77aac commit 9d56f06
File tree
2 files changed
+115
-8
lines changed- bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics
2 files changed
+115
-8
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: 68 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
471 | 481 | | |
472 | 482 | | |
473 | 483 | | |
| |||
705 | 715 | | |
706 | 716 | | |
707 | 717 | | |
| 718 | + | |
| 719 | + | |
708 | 720 | | |
709 | 721 | | |
710 | 722 | | |
| |||
722 | 734 | | |
723 | 735 | | |
724 | 736 | | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
725 | 742 | | |
726 | 743 | | |
727 | 744 | | |
| |||
780 | 797 | | |
781 | 798 | | |
782 | 799 | | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
783 | 805 | | |
784 | 806 | | |
785 | 807 | | |
| |||
827 | 849 | | |
828 | 850 | | |
829 | 851 | | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
830 | 857 | | |
831 | 858 | | |
832 | 859 | | |
| |||
858 | 885 | | |
859 | 886 | | |
860 | 887 | | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
861 | 893 | | |
862 | 894 | | |
863 | 895 | | |
| |||
883 | 915 | | |
884 | 916 | | |
885 | 917 | | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
886 | 954 | | |
887 | 955 | | |
0 commit comments