diff --git a/src/Skia/Perspex.Skia/DrawingContextImpl.cs b/src/Skia/Perspex.Skia/DrawingContextImpl.cs index 49d627442b..970ecfbb2f 100644 --- a/src/Skia/Perspex.Skia/DrawingContextImpl.cs +++ b/src/Skia/Perspex.Skia/DrawingContextImpl.cs @@ -229,10 +229,7 @@ namespace Perspex.Skia } else { - // TODO: DrawRRect (ore DrawRoundedRect) is not accesible in SkiaSharp yet. We should add that - // to SkiaSharp and initiate a PR.... - Canvas.DrawRect(rc, paint.Paint); - //Canvas.DrawRoundedRect(rc, cornerRadius, cornerRadius, paint); + Canvas.DrawRoundRect(rc, cornerRadius, cornerRadius, paint.Paint); } } } @@ -248,10 +245,7 @@ namespace Perspex.Skia } else { - // TODO: this does not exist in SkiaSharp yet - //throw new NotImplementedException(); - //Canvas.DrawRoundedRect(rc, cornerRadius, cornerRadius, paint); - Canvas.DrawRect(rc, paint.Paint); + Canvas.DrawRoundRect(rc, cornerRadius, cornerRadius, paint.Paint); } } } diff --git a/src/Skia/Perspex.Skia/readme.md b/src/Skia/Perspex.Skia/readme.md index 1c923df3c5..615564b17f 100644 --- a/src/Skia/Perspex.Skia/readme.md +++ b/src/Skia/Perspex.Skia/readme.md @@ -5,7 +5,6 @@ BitmapImpl - Save DrawingContextImpl -- DrawRoundRect is not properly implemented due to lack of support in SkiaSharp - Alpha support missing as SkiaSharp does not expose this - Gradient Shader caching? - TileBrushes