Properly place the main window

(Wohoo, I fixed one really irritating bug!)
This commit is contained in:
stefnotch
2021-02-21 20:49:40 +01:00
parent 01f2cc1dcc
commit 7f5903584e

View File

@@ -709,8 +709,9 @@ namespace FlaxEditor.Modules
var dpiScale = Platform.DpiScale;
var settings = CreateWindowSettings.Default;
settings.Title = "Flax Editor";
settings.Size = new Vector2(1300 * dpiScale, 900 * dpiScale); // TODO: Place the window on the correct screen (and use that screen's size)
settings.Size = Platform.DesktopSize;
settings.StartPosition = WindowStartPosition.CenterScreen;
settings.ShowAfterFirstPaint = true;
if (!Editor.Instance.Options.Options.Interface.UseNativeWindowSystem)
{