shell/elements: Fix corners order for clipping/shadows

This commit is contained in:
Victoria Brekenfeld 2025-12-12 19:16:51 +01:00 committed by Victoria Brekenfeld
parent ea470f0a4b
commit b6f0855a31
5 changed files with 34 additions and 28 deletions

View file

@ -97,10 +97,10 @@ where
Uniform::new(
"corner_radius",
[
radius[0] as f32,
radius[1] as f32,
radius[2] as f32,
radius[3] as f32,
radius[1] as f32,
radius[0] as f32,
radius[2] as f32,
],
),
Uniform::new(
@ -142,10 +142,10 @@ where
geo: Rectangle<f64, Logical>,
radius: [u8; 4],
) -> [Rectangle<f64, Logical>; 4] {
let top_left = radius[0] as f64;
let top_left = radius[3] as f64;
let top_right = radius[1] as f64;
let bottom_right = radius[2] as f64;
let bottom_left = radius[3] as f64;
let bottom_right = radius[0] as f64;
let bottom_left = radius[2] as f64;
[
Rectangle::new(geo.loc, Size::from((top_left, top_left))),