Remove SizeForFlow magic number

This commit is contained in:
David Zhao
2019-03-28 15:40:58 +09:00
parent 9b047d9b90
commit bfe44eb33d
4 changed files with 11 additions and 4 deletions

View File

@ -63,7 +63,8 @@ namespace osu.Game.Graphics.Containers
if (logo == null || !Tracking)
return;
LogoFacade.Size = new Vector2(logo.SizeForFlow * facadeScale);
// Account for the scale of the actual logo container, as SizeForFlow only accounts for the sprite scale.
LogoFacade.Size = new Vector2(logo.SizeForFlow * logo.Scale.X * facadeScale);
if (LogoFacade.Parent != null && logo.Position != logoTrackingPosition)
{