Change LINQ query for better readability

This commit is contained in:
Dean Herbert 2021-05-25 18:51:49 +09:00
parent 871ca8054f
commit 342acadae2
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ public DrawableStoryboard(Storyboard storyboard)
Size = new Vector2(640, 480);
bool onlyHasVideoElements = !Storyboard.Layers.Any(l => l.Elements.Any(e => !(e is StoryboardVideo)));
bool onlyHasVideoElements = Storyboard.Layers.SelectMany(l => l.Elements).Any(e => !(e is StoryboardVideo));
Width = Height * (storyboard.BeatmapInfo.WidescreenStoryboard || onlyHasVideoElements ? 16 / 9f : 4 / 3f);