Use BeatmapBackgroundSprite

This commit is contained in:
DrabWeb 2017-05-22 03:15:22 -03:00
parent 77affc1eb7
commit bdab545ca4
1 changed files with 1 additions and 2 deletions

View File

@ -36,10 +36,9 @@ protected IEnumerable<DifficultyIcon> GetDifficultyIcons()
protected Drawable GetBackground(TextureStore textures)
{
return new AsyncLoadWrapper(new Sprite
return new AsyncLoadWrapper(new BeatmapBackgroundSprite(new OnlineWorkingBeatmap(SetInfo.Beatmaps.FirstOrDefault(), textures, null))
{
FillMode = FillMode.Fill,
Texture = new OnlineWorkingBeatmap(SetInfo.Beatmaps.FirstOrDefault(), textures, null).Background,
OnLoadComplete = d => d.FadeInFromZero(400, EasingTypes.Out),
}) { RelativeSizeAxes = Axes.Both };
}