Browse Source
Merge branch 'master' into reworkedFontManager
pull/3234/head
Benedikt Stebner
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
src/Skia/Avalonia.Skia/DrawingContextImpl.cs
-
src/Windows/Avalonia.Direct2D1/Media/DrawingContextImpl.cs
|
|
|
@ -187,7 +187,7 @@ namespace Avalonia.Skia |
|
|
|
public void DrawRectangle(IBrush brush, IPen pen, Rect rect, double radiusX, double radiusY) |
|
|
|
{ |
|
|
|
var rc = rect.ToSKRect(); |
|
|
|
var isRounded = Math.Abs(radiusX) > double.Epsilon || Math.Abs(radiusX) > double.Epsilon; |
|
|
|
var isRounded = Math.Abs(radiusX) > double.Epsilon || Math.Abs(radiusY) > double.Epsilon; |
|
|
|
|
|
|
|
if (brush != null) |
|
|
|
{ |
|
|
|
|
|
|
|
@ -234,7 +234,7 @@ namespace Avalonia.Direct2D1.Media |
|
|
|
public void DrawRectangle(IBrush brush, IPen pen, Rect rect, double radiusX, double radiusY) |
|
|
|
{ |
|
|
|
var rc = rect.ToDirect2D(); |
|
|
|
var isRounded = Math.Abs(radiusX) > double.Epsilon || Math.Abs(radiusX) > double.Epsilon; |
|
|
|
var isRounded = Math.Abs(radiusX) > double.Epsilon || Math.Abs(radiusY) > double.Epsilon; |
|
|
|
|
|
|
|
if (brush != null) |
|
|
|
{ |
|
|
|
|