[fpc-devel] InflateRect() not cross-platform

Michael Van Canneyt michael at freepascal.org
Tue Jul 25 12:18:12 CEST 2006



On Tue, 25 Jul 2006, Graeme Geldenhuys wrote:

> Hi,
>
> Any reason why there isn't a cross-platfrom InflateRect() function in
> the RTL?  It only appears in the Windows API translations and is a
> very handly funtion to have.
>
> For those that don't know InflateRect():
> Usage:
> InflateRect(Rect, 1, 1);
> InflateRect(Rect, -2, -2);
>
> You can enlarge/shrink the X and Y co-ordinates of a TRect using this 
> function.

Well, feel free to implement it. We'll put it in types.pas, together with the
other TRect functions.

Michael.



More information about the fpc-devel mailing list