carbon: fixed SetWindowOrgEx for windows compatibility

git-svn-id: trunk@24167 -
This commit is contained in:
dmitry 2010-03-22 09:38:16 +00:00
parent 518fc97931
commit b49301200d

View File

@ -2443,7 +2443,7 @@ begin
{$ENDIF}
if not CheckDC(DC, 'MoveWindowOrgEx') then Exit;
CGContextTranslateCTM(TCarbonContext(DC).CGContext, DX, DY);
Result := True;
end;
@ -3358,7 +3358,7 @@ begin
GetWindowOrgEx(DC, @OldP);
Result := MoveWindowOrgEx(DC, NewX - OldP.X, NewY - OldP.Y);
Result := MoveWindowOrgEx(DC, - NewX - OldP.X, - NewY - OldP.Y);
if OldPoint <> nil then
OldPoint := @OldP;
end;