From: jpbruyere Date: Sun, 13 Mar 2016 22:47:01 +0000 (+0100) Subject: set CurrentInterface in CTOR of Interface X-Git-Tag: v0.4~78 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=cb66e67e7f94c70febf3be90c267585599c07dd0;p=jp%2Fcrow.git set CurrentInterface in CTOR of Interface --- diff --git a/OTKCrow/OpenTKGameWindow.cs b/OTKCrow/OpenTKGameWindow.cs index b90b6ad4..dc687b64 100644 --- a/OTKCrow/OpenTKGameWindow.cs +++ b/OTKCrow/OpenTKGameWindow.cs @@ -122,7 +122,6 @@ namespace Crow void interfaceThread() { CrowInterface = new Interface (); - Interface.CurrentInterface = CrowInterface; CrowInterface.Quit += Quit; CrowInterface.MouseCursorChanged += CrowInterface_MouseCursorChanged; diff --git a/src/Interface.cs b/src/Interface.cs index d09e19e6..1084ef7b 100644 --- a/src/Interface.cs +++ b/src/Interface.cs @@ -42,6 +42,7 @@ namespace Crow Interface.LoadCursors (); } public Interface(){ + LayoutingQueue = new Queue(); Interface.CurrentInterface = this; } #endregion @@ -69,7 +70,7 @@ namespace Crow public const int MaxLayoutingTries = 50; #endregion - public Queue LayoutingQueue = new Queue(); + public Queue LayoutingQueue; public Queue GraphicUpdateQueue = new Queue(); public static void RegisterForGraphicUpdate(GraphicObject g)