From 5056fc6f9bf4218a940ad64c03229983317ae578 Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Wed, 8 Jul 2026 11:59:04 -0400 Subject: [PATCH] improv: overlap corner radius strip regions fixes handling of unfortunate scale values --- src/surface/corner_radius.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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. }, }); } }