mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 03:00:24 +02:00
Gtk3: fixed moveTo() when handling pen with width > 1. issue #41405
This commit is contained in:
parent
548f2b0657
commit
1a2bdc04d9
@ -2741,9 +2741,16 @@ begin
|
|||||||
OldPoint^.X := Round(dx);
|
OldPoint^.X := Round(dx);
|
||||||
OldPoint^.Y := Round(dy);
|
OldPoint^.Y := Round(dy);
|
||||||
end;
|
end;
|
||||||
cairo_move_to(pcr, X, Y);
|
dx := X;
|
||||||
FLastPenX := X;
|
dy := Y;
|
||||||
FLastPenY := Y;
|
if CurrentPen.Width > 1 then
|
||||||
|
begin
|
||||||
|
dx := X + PixelOffset;
|
||||||
|
dy := Y + PixelOffset;
|
||||||
|
end;
|
||||||
|
cairo_move_to(pcr, dx, dy);
|
||||||
|
FLastPenX := dx;
|
||||||
|
FLastPenY := dy;
|
||||||
//TODO: check if we need here cairo_get_current_point or we can assign it like above
|
//TODO: check if we need here cairo_get_current_point or we can assign it like above
|
||||||
//cairo_get_current_point(pcr,@FLastPenX,@FLastPenY);
|
//cairo_get_current_point(pcr,@FLastPenX,@FLastPenY);
|
||||||
Result := True;
|
Result := True;
|
||||||
|
Loading…
Reference in New Issue
Block a user