nix/files/zed-no-rounded-corners.patch

24 lines
822 B
Diff
Raw Permalink Normal View History

2024-09-17 20:01:58 +02:00
diff --git a/crates/gpui/src/platform/blade/shaders.wgsl b/crates/gpui/src/platform/blade/shaders.wgsl
index c3983c7acc..1a5689e635 100644
--- a/crates/gpui/src/platform/blade/shaders.wgsl
+++ b/crates/gpui/src/platform/blade/shaders.wgsl
@@ -163,7 +163,7 @@ fn blur_along_x(x: f32, y: f32, sigma: f32, corner: f32, half_size: vec2<f32>) -
}
fn pick_corner_radius(point: vec2<f32>, radii: Corners) -> f32 {
- if (point.x < 0.0) {
+ /* if (point.x < 0.0) {
if (point.y < 0.0) {
return radii.top_left;
} else {
@@ -175,7 +175,8 @@ fn pick_corner_radius(point: vec2<f32>, radii: Corners) -> f32 {
} else {
return radii.bottom_right;
}
- }
+ } */
+ return 0.0;
}
fn quad_sdf(point: vec2<f32>, bounds: Bounds, corner_radii: Corners) -> f32 {