[fpc-devel] Types.IntersectRect(), probably bug or misusage VERY URGENT
zeljko at holobit.net
zeljko at holobit.net
Tue Oct 26 20:05:09 CEST 2010
Quoting Mattias Gaertner <nc-gaertnma at netcologne.de>:
> On Tue, 26 Oct 2010 17:31:48 +0200
> zeljko <zeljko at holobit.net> wrote:
>
>> 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.
>
> Then it is probably better to undo the change.
> Should I do that?
No, why ? I've fixed problems inside widgetsets.Let's propose patch
for improving Types.IntersectRect().
zeljko
More information about the fpc-devel
mailing list