From 1d5c5a0a4da5a16d21b9bd868f6a58b086a0fb24 Mon Sep 17 00:00:00 2001 From: smoogipooo Date: Mon, 19 Jun 2017 07:50:26 +0900 Subject: [PATCH 1/2] Fix an invalid depth operation. --- osu.Game/Graphics/UserInterface/TwoLayerButton.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/osu.Game/Graphics/UserInterface/TwoLayerButton.cs b/osu.Game/Graphics/UserInterface/TwoLayerButton.cs index 4c4b6c4d48..afd4e2f7fb 100644 --- a/osu.Game/Graphics/UserInterface/TwoLayerButton.cs +++ b/osu.Game/Graphics/UserInterface/TwoLayerButton.cs @@ -62,8 +62,12 @@ namespace osu.Game.Graphics.UserInterface X = (value & Anchor.x2) > 0 ? SIZE_RETRACTED.X * shear * 0.5f : 0; + Remove(c1); + Remove(c2); c1.Depth = (value & Anchor.x2) > 0 ? 0 : 1; c2.Depth = (value & Anchor.x2) > 0 ? 1 : 0; + Add(c1); + Add(c2); } } From 5533ebabfcb23178b50bd73f37c17e9ab23c3540 Mon Sep 17 00:00:00 2001 From: smoogipooo Date: Fri, 23 Jun 2017 15:32:45 +0900 Subject: [PATCH 2/2] Update framework. --- osu-framework | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu-framework b/osu-framework index eed53d35f9..97ff3376d1 160000 --- a/osu-framework +++ b/osu-framework @@ -1 +1 @@ -Subproject commit eed53d35f999ae08a6d233c046aa333a7623c5f0 +Subproject commit 97ff3376d1bdac3703d442e62f5ee6a36eb3b73f