diff options
Diffstat (limited to 'src/geom/path.rs')
| -rw-r--r-- | src/geom/path.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/geom/path.rs b/src/geom/path.rs index bb2832fd..f4e4a8b2 100644 --- a/src/geom/path.rs +++ b/src/geom/path.rs @@ -25,8 +25,8 @@ impl Path { /// Create a path that approximates an axis-aligned ellipse. pub fn ellipse(size: Size) -> Self { // https://stackoverflow.com/a/2007782 - let rx = size.width / 2.0; - let ry = size.height / 2.0; + let rx = size.w / 2.0; + let ry = size.h / 2.0; let m = 0.551784; let mx = m * rx; let my = m * ry; |
