Skip to content

Commit

Permalink
feat: (macOS) Add support for Shape Line
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpinedam authored and dr1rrb committed Jun 16, 2020
1 parent 5c3bf7e commit a61e5a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Uno.UI/Media/PathStreamGeometryContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ public override void BeginFigure(Point startPoint, bool isFilled, bool isClosed)
{
#if XAMARIN_IOS_UNIFIED || XAMARIN_IOS
bezierPath.MoveTo(startPoint);
#elif __MACOS__
bezierPath.MoveTo(startPoint);
#elif XAMARIN_ANDROID
var physicalStartPoint = LogicalToPhysicalNoRounding(startPoint);
bezierPath.MoveTo((float)physicalStartPoint.X, (float)physicalStartPoint.Y);
Expand All @@ -49,6 +51,8 @@ public override void LineTo(Point point, bool isStroked, bool isSmoothJoin)
{
#if XAMARIN_IOS_UNIFIED || XAMARIN_IOS
bezierPath.AddLineTo(point);
#elif __MACOS__
bezierPath.LineTo(point);
#elif XAMARIN_ANDROID
var physicalPoint = LogicalToPhysicalNoRounding(point);
bezierPath.LineTo((float)physicalPoint.X, (float)physicalPoint.Y);
Expand Down

0 comments on commit a61e5a9

Please sign in to comment.