On Thu, 8 Dec 2011, Felipe Monteiro de Carvalho wrote:

Some more changes I'd like to propose. It seams that Rectangle is not
TCanvas compatible:

procedure TFPPixelCanvas.DoRectangle (const Bounds:TRect);

A rectangle over (0, 0, 10, 10) should not include the pixels line
with x=10 and y=10 but instead go only to x=9 and y=9, it is
considered that the position is in the top-left of the pixel

DoLine should not include the last point of the line (maybe unless you
have a pen cap), although this one is a bit confusing. But it is how
TCanvas works.

Yes, but changing this will break existing code ?

Michael.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to