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.ContextMenu
PerformLayout();
// Calculate popup direction and initial location (fit on a single monitor)
var dpiScale = parentWin.Window.DpiScale;
var dpiScale = parentWin.DpiScale;
Vector2 dpiSize = Size * dpiScale;
Vector2 locationWS = parent.PointToWindow(location);
Vector2 locationSS = parentWin.PointToScreen(locationWS);