mirror of https://github.com/ppy/osu
Make code more concise and move method to a more appropriate place
This commit is contained in:
parent
c8542d2434
commit
f95175983a
|
@ -531,6 +531,13 @@ protected override void Dispose(bool isDisposing)
|
|||
SentryLogger.Dispose();
|
||||
}
|
||||
|
||||
protected override IDictionary<FrameworkSetting, object> GetFrameworkConfigDefaults()
|
||||
=> new Dictionary<FrameworkSetting, object>
|
||||
{
|
||||
// General expectation that osu! starts in fullscreen by default (also gives the most predictable performance)
|
||||
{ FrameworkSetting.WindowMode, WindowMode.Fullscreen }
|
||||
};
|
||||
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
@ -1013,13 +1020,5 @@ private void screenExited(IScreen lastScreen, IScreen newScreen)
|
|||
if (newScreen == null)
|
||||
Exit();
|
||||
}
|
||||
|
||||
protected override IDictionary<FrameworkSetting, object> GetFrameworkConfigDefaults()
|
||||
{
|
||||
// Overriding config defaults determined by Framework
|
||||
IDictionary<FrameworkSetting, object> defaultOverrides = new Dictionary<FrameworkSetting, object>();
|
||||
defaultOverrides.Add(FrameworkSetting.WindowMode, WindowMode.Fullscreen);
|
||||
return defaultOverrides;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue