Browse Source

Merge pull request #584 from wieslawsoltes/FixSkiaSetFillRule

Fix Skia SetFillRule
pull/595/head
Steven Kirk 10 years ago
committed by GitHub
parent
commit
6fece5737d
  1. 4
      src/Skia/Avalonia.Skia/StreamGeometryImpl.cs

4
src/Skia/Avalonia.Skia/StreamGeometryImpl.cs

@ -141,10 +141,8 @@ namespace Avalonia.Skia
public void SetFillRule(FillRule fillRule) public void SetFillRule(FillRule fillRule)
{ {
_geometryImpl.FillRule = fillRule; _path.FillType = fillRule == FillRule.EvenOdd ? SKPathFillType.EvenOdd : SKPathFillType.Winding;
} }
} }
public FillRule FillRule { get; set; }
} }
} }

Loading…
Cancel
Save