From 588806af40a25fcffa310b9f6c42add6bccebd30 Mon Sep 17 00:00:00 2001 From: CrazyCraftix <43807375+CrazyCraftix@users.noreply.github.com> Date: Mon, 11 Mar 2024 20:10:02 +0100 Subject: [PATCH] fix scaling of rounded corners for rect shape (#4152) --- crates/epaint/src/shape.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/epaint/src/shape.rs b/crates/epaint/src/shape.rs index 0aeec5525a5..fefae6c93a1 100644 --- a/crates/epaint/src/shape.rs +++ b/crates/epaint/src/shape.rs @@ -403,6 +403,7 @@ impl Shape { Self::Rect(rect_shape) => { rect_shape.rect = transform * rect_shape.rect; rect_shape.stroke.width *= transform.scaling; + rect_shape.rounding *= transform.scaling; } Self::Text(text_shape) => { text_shape.pos = transform * text_shape.pos;