Hello,

yes it works, slightly corrected like this:

  if CGRectIsNull(ARect)<>0 then
  begin
     WriteLn(StdErr,'CGRectToRect is null, returning a zero TRect.');
     Result.Left := 0;
     Result.Top := 0;
     Result.Right := 0;
     Result.Bottom := 0;
     Exit;
  end;

Cheers,
Tobias

> Can you please test this code:
> [...]
>   if CGRectIsNull(ARect) then
> [...]
> I searched the apple docs through, but can't find anything others concerning 
> this issue. If this won't work, we can use your solution.
> 
> Tom

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to