1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:38:12 +00:00

LibGfx: Transform the x axis rotation for elliptical arcs

Without this, copy_transformed() will create paths with bogus elliptical
arcs. This was very noticeable with transformed ellipses in SVG.
This commit is contained in:
Andreas Kling 2023-04-26 16:56:03 +02:00
parent a77accf3f4
commit cc86c07f58

View file

@ -363,7 +363,7 @@ Path Path::copy_transformed(Gfx::AffineTransform const& transform) const
transform.map(segment->point()),
transform.map(arc_segment.center()),
transform.map(arc_segment.radii()),
arc_segment.x_axis_rotation(),
arc_segment.x_axis_rotation() + transform.rotation(),
arc_segment.theta_1(),
arc_segment.theta_delta(),
arc_segment.large_arc(),