Browse Source

Merge pull request #584 from wieslawsoltes/FixSkiaSetFillRule

Fix Skia SetFillRule
Steven Kirk 9 years ago
parent
commit
6fece5737d
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/Skia/Avalonia.Skia/StreamGeometryImpl.cs

+ 1 - 3
src/Skia/Avalonia.Skia/StreamGeometryImpl.cs

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