Add DpiScale to RootWindow

This commit is contained in:
stefnotch
2021-02-08 09:48:57 +01:00
parent c7feeb624d
commit 8f8f0266ce
5 changed files with 9 additions and 4 deletions

View File

@@ -124,7 +124,7 @@ namespace FlaxEditor.GUI.Docking
throw new InvalidOperationException("Missing parent window.");
var control = _tabsProxy != null ? (Control)_tabsProxy : this;
var clientPos = control.PointToWindow(Vector2.Zero);
return new Rectangle(parentWin.PointToScreen(clientPos), control.Size * RootWindow.Window.DpiScale);
return new Rectangle(parentWin.PointToScreen(clientPos), control.Size * RootWindow.DpiScale);
}
}