mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 13:24:19 +00:00
Scale corner_radius by the scale factor when rendering shadows
This commit is contained in:
parent
66dcb73263
commit
32c070250c
1 changed files with 1 additions and 1 deletions
|
@ -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(),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue