mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-10 17:37:59 +01:00
Gtk2: fixed another misusage of IntersectRect
git-svn-id: trunk@27880 -
This commit is contained in:
parent
21a209e959
commit
400281ddea
@ -3276,7 +3276,7 @@ var
|
||||
end;
|
||||
|
||||
var
|
||||
R: TRect;
|
||||
R, R1: TRect;
|
||||
UseAlpha: Boolean;
|
||||
begin
|
||||
Result := False;
|
||||
@ -3298,7 +3298,8 @@ begin
|
||||
if ARect <> nil
|
||||
then begin
|
||||
// get intersection
|
||||
IntersectRect(R, ARect^, R);
|
||||
IntersectRect(R1, ARect^, R);
|
||||
R := R1;
|
||||
ADesc.Width := R.Right - R.Left;
|
||||
ADesc.Height := R.Bottom - R.Top;
|
||||
end;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user