[fpc-devel] Types.IntersectRect(), probably bug or misusage VERY URGENT

zeljko zeljko at holobit.net
Tue Oct 26 17:31:48 CEST 2010


On Tuesday 26 October 2010 16:57, Sergei Gorelkin wrote:

>
> Well, maybe. For me, it is rather hard to think about the opposite - that a
> const may be passed *not* by reference - due to long-term Delphi/Windows
> experience.
>
> But, after all, Types.IntersectRect and surrounding stuff were introduced
> and are intended as WinApi replacement, and WinApi IntersectRect() *does*
> pass params by reference (they are originally PRect). So maybe it will be
> still good to fix Types.IntersectRect to conform?

One note: IntersectRect in lazarus worked OK until we decided to use 
Types.IntersectRect, old implementation from GraphType looks much better than 
current fpc one.

zeljko



More information about the fpc-devel mailing list