1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

supress horizontal scaling of left-and-right stages

This commit is contained in:
mcendu 2020-05-31 11:28:54 +08:00
parent e64e44ecf9
commit b06017dbf1
No known key found for this signature in database
GPG Key ID: FBCD5D45163D6364

View File

@ -52,10 +52,10 @@ namespace osu.Game.Rulesets.Mania.Skinning
base.Update();
if (leftSprite?.Height > 0)
leftSprite.Scale = new Vector2(DrawHeight / leftSprite.Height);
leftSprite.Scale = new Vector2(1, DrawHeight / leftSprite.Height);
if (rightSprite?.Height > 0)
rightSprite.Scale = new Vector2(DrawHeight / rightSprite.Height);
rightSprite.Scale = new Vector2(1, DrawHeight / rightSprite.Height);
}
}
}