[Lazarus] C++ syntax highlighting not working

Lord Satan reimgrab at web.de
Fri Jan 30 13:38:35 CET 2009


On Thu, 29 Jan 2009 23:30:12 +0100 (CET)
Michael Van Canneyt <michael at freepascal.org> wrote:

> 
> 
> On Fri, 30 Jan 2009, dmitry boyarintsev wrote:
> 
> > AFAIK, Delphi compat.Here's the delphi code from Types unit.
> > 
> > function PtInRect(const Rect: TRect; const P: TPoint): Boolean;
> > begin
> >   Result := (P.X >= Rect.Left) and (P.X < Rect.Right) and (P.Y >=
> > Rect.Top) and (P.Y < Rect.Bottom);
> > end;
> 
> I found this out already, but why, what is the rationale ?

A pixel is actually an area. It has a left and and right side.
All coordinates refer to the left,top corner of a pixel.


Mattias



More information about the Lazarus mailing list