From db8e44c7156b877ada0458b66fd8c17f91d3bf23 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Tue, 7 Feb 2017 11:15:37 +0900 Subject: [PATCH] Smooth triangles a bit (to avoid whole pixel jumps). --- osu.Game/Graphics/Backgrounds/Triangles.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/osu.Game/Graphics/Backgrounds/Triangles.cs b/osu.Game/Graphics/Backgrounds/Triangles.cs index 80b5a7a16e..664889181d 100644 --- a/osu.Game/Graphics/Backgrounds/Triangles.cs +++ b/osu.Game/Graphics/Backgrounds/Triangles.cs @@ -76,6 +76,7 @@ namespace osu.Game.Graphics.Backgrounds Origin = Anchor.TopCentre, RelativePositionAxes = Axes.Both, Scale = new Vector2(scale), + EdgeSmoothness = new Vector2(1), // Scaling height by 0.866 results in equiangular triangles (== 60° and equal side length) Colour = GetTriangleShade(), Size = new Vector2(size, 0.866f * size),