mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-07 06:16:12 +02:00
Gtk3: use cairo_stroke_preserve() in lineTo(). issue #41523
This commit is contained in:
parent
c94adb2673
commit
4c2ad63048
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user