Skip to content

Commit 9b1d9ac

Browse files
committed
Use old smoothing function and cleanup
1 parent 55bd6a0 commit 9b1d9ac

File tree

3 files changed

+2
-63
lines changed

3 files changed

+2
-63
lines changed

data/gala.gresource.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
<gresource prefix="/io/elementary/desktop/gala">
2424
<file compressed="true">shaders/colorblindness-correction.vert</file>
2525
<file compressed="true">shaders/monochrome.vert</file>
26-
<file compressed="true">shaders/rounded-corners.vert</file>
2726
</gresource>
2827
<gresource prefix="/io/elementary/desktop/gala-daemon">
2928
<file compressed="true">gala-daemon.css</file>

data/shaders/rounded-corners.vert

Lines changed: 0 additions & 59 deletions
This file was deleted.

lib/RoundedCornersEffect.vala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ public class Gala.RoundedCornersEffect : Clutter.OffscreenEffect {
7171
}
7272
7373
// Only pixels on the edge of the curve need expensive antialiasing
74-
// return smoothstep (outer_radius, inner_radius, sqrt (dist_squared));
75-
return outer_radius - sqrt (dist_squared);
74+
return smoothstep (outer_radius, inner_radius, sqrt (dist_squared));
7675
}
7776
""",
7877
null
@@ -152,7 +151,7 @@ public class Gala.RoundedCornersEffect : Clutter.OffscreenEffect {
152151
var height = box.y2 - box.y1;
153152
width = Math.nearbyintf (width);
154153
height = Math.nearbyintf (height);
155-
154+
156155
box.x2 = Math.ceilf (box.x2 + 0.75f);
157156
box.y2 = Math.ceilf (box.y2 + 0.75f);
158157

0 commit comments

Comments
 (0)