diff --git a/src/surface/corner_radius.rs b/src/surface/corner_radius.rs index 1eda578d..595b4cf0 100644 --- a/src/surface/corner_radius.rs +++ b/src/surface/corner_radius.rs @@ -45,7 +45,7 @@ pub fn rounded_rect_strips(rect: Rectangle, radius: CornerRadius) -> Vec 1. { 2. } else { 1. }, }); } } @@ -62,9 +62,9 @@ pub fn rounded_rect_strips(rect: Rectangle, radius: CornerRadius) -> Vec 0.0 { out.push(Rectangle { x: strip_x, - y: rect.y + h - max_bottom as f32 + y as f32, + y: rect.y + h - max_bottom as f32 + y as f32 - if h > 1. { 1. } else { 0. }, width: strip_w, - height: 1.0, + height: if h > 1. { 2. } else { 1. }, }); } }