[fpc-devel] Slight calculation error in Bounds() procedure in Classes unit.
Aleksa Todorovic
alexione at gmail.com
Wed Jun 9 09:35:11 CEST 2010
I don't think this is a bug. It's usual that Right/Bottom denotes one
pixel off intended rectangle. Think in terms of floating point: 1 =
1.0 means left side of the pixel. And 1.5 would mean center of pixel.
So in THAT case, difference between left-most and right-most pixels
are 2.5-1.5=1.0. On the other hand, width of rectangle is still 2.0 ->
one between 1.0 and 2.0, and the other between 2.0 and 3.0.
Huh, too much text for such simple math :-)
On Wed, Jun 9, 2010 at 09:26, Graeme Geldenhuys <graemeg.lists at gmail.com> wrote:
>
> In the bug report is a patch.
>
>
> http://bugs.freepascal.org/view.php?id=16682
>
>
>
> Regards,
> - Graeme -
>
> --
> fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
> http://opensoft.homeip.net/fpgui/
>
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
>
--
Aleksa Todorovic - Lead Programmer
Eipix Entertainment
www eipix com
More information about the fpc-devel
mailing list