mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 05:36:10 +02:00
LazRegions: Minor fixes and commenting
git-svn-id: trunk@36606 -
This commit is contained in:
parent
cb68260c9f
commit
6bab45e223
@ -238,11 +238,16 @@ begin
|
||||
|
||||
if (fnCombineMode<>RGN_COPY) and not IsValidGDIObject(Src2) then Exit;
|
||||
|
||||
// If the operation is a copy, execute it now, as it will not involve Src2
|
||||
// The common code would not work in this case
|
||||
if fnCombineMode = RGN_COPY then
|
||||
begin
|
||||
if Dest <> Src1 then DestRgn.Assign(Src1Rgn);
|
||||
Result := DestRgn.GetRegionKind();
|
||||
Exit;
|
||||
end;
|
||||
|
||||
// Now operations which involve Src2, consider both cases: Dest=Src1 and Dest<>Src1
|
||||
if Dest = Src1 then
|
||||
DestRgn.CombineWith(Src2Rgn, fnCombineMode)
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user