Browse Source

Fix Skia SetFillRule

Fixes #583
Wiesław Šoltés 9 years ago
parent
commit
238a4914d9
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; }
     }
 }