From b4cf9746625c5d52cb0adaad86e2b048d147ef58 Mon Sep 17 00:00:00 2001 From: Salman Alshamrani Date: Tue, 29 Apr 2025 04:16:28 +0300 Subject: [PATCH] Fix sheared button getting cut when scaled beyond 100% Keep masking back in `Content`, since the scaling animation is happening on `Content` instead of `this`. This doesn't regress the intended behaviour in this PR (which is to just to make the button class itself sheared instead of its content). --- osu.Game/Graphics/UserInterface/ShearedButton.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osu.Game/Graphics/UserInterface/ShearedButton.cs b/osu.Game/Graphics/UserInterface/ShearedButton.cs index cc57e9c75f..16891babf3 100644 --- a/osu.Game/Graphics/UserInterface/ShearedButton.cs +++ b/osu.Game/Graphics/UserInterface/ShearedButton.cs @@ -89,11 +89,11 @@ namespace osu.Game.Graphics.UserInterface { Height = height; - CornerRadius = CORNER_RADIUS; Shear = OsuGame.SHEAR; - Masking = true; Content.Anchor = Content.Origin = Anchor.Centre; + Content.CornerRadius = CORNER_RADIUS; + Content.Masking = true; Children = new Drawable[] {