From 4eeadf87fb6c3a13e9cc88053cfcb7448293476c Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Wed, 17 Mar 2021 10:28:14 +0100 Subject: [PATCH] Fix warning --- Source/Engine/UI/GUI/Control.cs | 2 +- Source/Engine/UI/GUI/WindowRootControl.cs | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/Source/Engine/UI/GUI/Control.cs b/Source/Engine/UI/GUI/Control.cs index fb6424b58..597cc9e41 100644 --- a/Source/Engine/UI/GUI/Control.cs +++ b/Source/Engine/UI/GUI/Control.cs @@ -315,7 +315,7 @@ namespace FlaxEngine.GUI /// /// Gets the control DPI scale factor (1 is default). Includes custom DPI scale. /// - public float DpiScale => _root?.RootWindow?.DpiScale ?? Platform.DpiScale; + public float DpiScale => _root?.RootWindow?.Window.DpiScale ?? Platform.DpiScale; /// /// Gets screen position of the control (upper left corner). diff --git a/Source/Engine/UI/GUI/WindowRootControl.cs b/Source/Engine/UI/GUI/WindowRootControl.cs index a8028ebe8..1e9785195 100644 --- a/Source/Engine/UI/GUI/WindowRootControl.cs +++ b/Source/Engine/UI/GUI/WindowRootControl.cs @@ -55,11 +55,6 @@ namespace FlaxEngine.GUI /// public bool IsMaximized => _window.IsMaximized; - /// - /// Gets the window DPI scale factor (1 is default). Includes custom DPI scale - /// - public float DpiScale => _window.DpiScale; - internal WindowRootControl(Window window) { _window = window;