[Lazarus] Hi-DPI tweak of components

Jean SUZINEAU jean.suzineau at wanadoo.fr
Thu Jun 8 12:39:48 CEST 2023


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.



More information about the lazarus mailing list