mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-27 03:29:12 +02:00
qt: remove last pixel on line draw if pen is cosmetic (to mimic windows)
git-svn-id: trunk@17646 -
This commit is contained in:
parent
eda677114d
commit
1e9b89230d
@ -3698,7 +3698,8 @@ begin
|
||||
|
||||
TQtDeviceContext(DC).getPenPos(@PenPos);
|
||||
LastPos := Point(X, Y);
|
||||
LastPos := TQtDeviceContext(DC).GetLineLastPixelPos(PenPos, LastPos);
|
||||
if TQtDeviceContext(DC).pen.getCosmetic then
|
||||
LastPos := TQtDeviceContext(DC).GetLineLastPixelPos(PenPos, LastPos);
|
||||
TQtDeviceContext(DC).drawLine(PenPos.X, PenPos.Y, LastPos.X, LastPos.Y);
|
||||
MoveToEx(DC, X, Y, nil);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user