Scale corner_radius by the scale factor when rendering shadows

This commit is contained in:
Antonio Scandurra 2021-03-23 10:14:07 +01:00
parent 66dcb73263
commit 32c070250c

View file

@ -130,7 +130,7 @@ impl Renderer {
let shader_shadow = shaders::GPUIShadow { let shader_shadow = shaders::GPUIShadow {
origin: shape_bounds.origin().to_float2(), origin: shape_bounds.origin().to_float2(),
size: shape_bounds.size().to_float2(), size: shape_bounds.size().to_float2(),
corner_radius: shadow.corner_radius, corner_radius: shadow.corner_radius * scene.scale_factor(),
sigma: shadow.sigma, sigma: shadow.sigma,
color: shadow.color.to_uchar4(), color: shadow.color.to_uchar4(),
}; };