Move cursor hiding to OsuGameDesktop (fixes headless).

This commit is contained in:
Dean Herbert 2017-03-18 21:46:58 +09:00
parent f636f59289
commit 6f07930110
2 changed files with 2 additions and 2 deletions

View File

@ -43,6 +43,8 @@ namespace osu.Desktop
var desktopWindow = host.Window as DesktopGameWindow;
if (desktopWindow != null)
{
desktopWindow.CursorState = CursorState.Hidden;
desktopWindow.Icon = Icon.ExtractAssociatedIcon(Assembly.GetExecutingAssembly().Location);
desktopWindow.Title = Name;

View File

@ -132,8 +132,6 @@ namespace osu.Game
{
base.LoadComplete();
Host.Window.CursorState = CursorState.Hidden;
AddInternal(ratioContainer = new RatioAdjust
{
Children = new[]