[fpc-devel] TFPCustomCanvas and Rectangle method
Graeme Geldenhuys
graemeg.lists at gmail.com
Sat Jun 30 18:13:12 CEST 2007
Hi,
Below is the definition of the Rectangle method as defined in
TFPCustomCanvas in the fpcanvas unit.
procedure Rectangle (left,top,right,bottom:integer);
I believe it would be much better defined as show below. The reason
being that 'right' and 'bottom' are actually offset values based on
'left' and 'top' and not absolute coordinates as the parameter names
would make you believe.
procedure Rectangle(ALeft, ATop, AWidth, AHeight:integer);
If Michael or anybody else agrees, I'll create and submit a patch for
the 'fpcanvas' unit.
Regards,
- Graeme -
More information about the fpc-devel
mailing list