Gtk3: use cairo_stroke_preserve() in lineTo(). issue #41523

This commit is contained in:
zeljan1 2025-03-25 11:14:54 +01:00
parent c94adb2673
commit 4c2ad63048

View File

@ -2708,7 +2708,7 @@ begin
if fCurrentPen.Width<=1 then // optimizations if fCurrentPen.Width<=1 then // optimizations
begin begin
//cairo_get_current_point(pcr, @FX, @FY); cairo_get_current_point(pcr, @FLastPenX, @FLastPenY);
X0:=round(FLastPenX); X0:=round(FLastPenX);
Y0:=round(FLastPenY); Y0:=round(FLastPenY);
dx:=X-X0; dx:=X-X0;
@ -2768,7 +2768,7 @@ begin
end else end else
cairo_line_to(pcr,X+PixelOffset, Y+PixelOffset); cairo_line_to(pcr,X+PixelOffset, Y+PixelOffset);
cairo_stroke(pcr); cairo_stroke_preserve(pcr);
Result := True; Result := True;
end; end;