Skip to content

Commit

Permalink
This way
Browse files Browse the repository at this point in the history
  • Loading branch information
mattleibow committed Mar 27, 2024
1 parent 707a776 commit a4c12fa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions binding/SkiaSharp/SKPath.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,11 @@ public bool Contains (float x, float y) =>
public void Offset (SKPoint offset) =>
Offset (offset.X, offset.Y);

public void Offset (float dx, float dy) =>
Transform (in SKMatrix.CreateTranslation (dx, dy));
public void Offset (float dx, float dy)
{
var matrix = SKMatrix.CreateTranslation (dx, dy);
Transform (in matrix);
}

public void MoveTo (SKPoint point) =>
SkiaApi.sk_path_move_to (Handle, point.X, point.Y);
Expand Down

0 comments on commit a4c12fa

Please sign in to comment.