Fix warning

This commit is contained in:
Wojtek Figat
2021-03-17 10:28:14 +01:00
parent a479f1daf6
commit 4eeadf87fb
2 changed files with 1 additions and 6 deletions

View File

@@ -315,7 +315,7 @@ namespace FlaxEngine.GUI
/// <summary>
/// Gets the control DPI scale factor (1 is default). Includes custom DPI scale.
/// </summary>
public float DpiScale => _root?.RootWindow?.DpiScale ?? Platform.DpiScale;
public float DpiScale => _root?.RootWindow?.Window.DpiScale ?? Platform.DpiScale;
/// <summary>
/// Gets screen position of the control (upper left corner).

View File

@@ -55,11 +55,6 @@ namespace FlaxEngine.GUI
/// </summary>
public bool IsMaximized => _window.IsMaximized;
/// <summary>
/// Gets the window DPI scale factor (1 is default). Includes custom DPI scale
/// </summary>
public float DpiScale => _window.DpiScale;
internal WindowRootControl(Window window)
{
_window = window;