mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 01:19:29 +02:00
gtk: undo the DC offset before returning the adjusted rect value in DrawEdge
git-svn-id: trunk@23271 -
This commit is contained in:
parent
eda58ffd42
commit
b07215ffad
@ -2922,9 +2922,11 @@ begin
|
||||
end;
|
||||
|
||||
// adjust rect if needed
|
||||
if (grfFlags and BF_ADJUST) = BF_ADJUST
|
||||
then ARect := R;
|
||||
|
||||
if (grfFlags and BF_ADJUST) = BF_ADJUST then
|
||||
begin
|
||||
OffsetRect(R, -DCOrigin.X, -DCOrigin.Y);
|
||||
ARect := R;
|
||||
end;
|
||||
Result := True;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user