mirror of
https://github.com/ppy/osu
synced 2025-01-11 08:39:31 +00:00
Move cursor hiding to OsuGameDesktop (fixes headless).
This commit is contained in:
parent
f636f59289
commit
6f07930110
@ -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;
|
||||
|
||||
|
@ -132,8 +132,6 @@ namespace osu.Game
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
||||
Host.Window.CursorState = CursorState.Hidden;
|
||||
|
||||
AddInternal(ratioContainer = new RatioAdjust
|
||||
{
|
||||
Children = new[]
|
||||
|
Loading…
Reference in New Issue
Block a user