1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 18:03:11 +08:00

Tidy some regressions

This commit is contained in:
Dean Herbert 2017-11-22 11:36:29 +09:00
parent 27fb598352
commit e3c5a599b6
2 changed files with 2 additions and 5 deletions

View File

@ -13,7 +13,7 @@ namespace osu.Game.Tests.Visual
{
public TestCasePlaybackControl()
{
var playback = new PlaybackControl()
var playback = new PlaybackControl
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,

View File

@ -1,8 +1,6 @@
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.Globalization;
using System.Linq;
using OpenTK;
using OpenTK.Graphics;
using osu.Framework.Allocation;
@ -11,7 +9,6 @@ using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.UserInterface;
using osu.Framework.Input;
using osu.Game.Beatmaps;
using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
using osu.Game.Graphics.UserInterface;
@ -77,7 +74,7 @@ namespace osu.Game.Screens.Edit.Components
private class PlaybackTabControl : OsuTabControl<double>
{
private static double[] tempo_values = new [] { 0.5, 0.75, 1 };
private static readonly double[] tempo_values = { 0.5, 0.75, 1 };
protected override TabItem<double> CreateTabItem(double value) => new PlaybackTabItem(value);