From 32c070250cb175737711bd67f787503960872b53 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Tue, 23 Mar 2021 10:14:07 +0100 Subject: [PATCH] Scale corner_radius by the scale factor when rendering shadows --- gpui/src/platform/mac/renderer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpui/src/platform/mac/renderer.rs b/gpui/src/platform/mac/renderer.rs index 0c647fe0746fa19c301b32a59a6c67b10a3f410a..ecd01f24f474633ca651c4bf1718ac63999a98a9 100644 --- a/gpui/src/platform/mac/renderer.rs +++ b/gpui/src/platform/mac/renderer.rs @@ -130,7 +130,7 @@ impl Renderer { let shader_shadow = shaders::GPUIShadow { origin: shape_bounds.origin().to_float2(), size: shape_bounds.size().to_float2(), - corner_radius: shadow.corner_radius, + corner_radius: shadow.corner_radius * scene.scale_factor(), sigma: shadow.sigma, color: shadow.color.to_uchar4(), };