Le 08/06/2023 à 11:34, Giuliano Colla via lazarus a écrit :
I believe that scaling for different DPI has been implemented with a
shortsighted approach.
It would have been nice at the time of Delphi 1 in 1995 ... ;-)
A few weeks ago I got some havoc trying to port some code from LCL to
Delphi 10.2 / FireMonkey when coordinates switch from Integer to Single,
TPoint to TPointF, array of TPoint to TPolygon...
https://github.com/jsuzineau/pascal_o_r_mapping/blob/b54853062432d7921b17a01c7b951688590a292a/delphi/pascal_o_r_mapping/03_Data/uBatpro_Element.pas#L1478
I think you can't use integer value for mm or inches.
--
_______________________________________________
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus