[Lazarus] LCL Grids: not scalable line width

Werner Pamler werner.pamler at freenet.de
Sun Oct 6 13:14:32 CEST 2019


Am 06.10.2019 um 12:14 schrieb AlexeyT via lazarus:
>
> IMO I have found place where width of canvas line is not scaled to 
> current DPI.
>
> procedure TCustomGrid.ChangeCursor(ACursor: TCursor;
>
> ...
> Canvas.Pen.Width:=3;
>
> ...
> Canvas.Pen.Width:=1;
>
AFAIK, pen widths so far are not scaled at all. If they were, 
pen.Width=1 should be scaled, too, and this can have a detrimental 
effect on line styles and drawing speed, at least on Windows.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20191006/707480ee/attachment.html>


More information about the lazarus mailing list