Add GetDpiScaleFactor to native window API

-This includes implementations of the API for the Editor and Windows, all other platforms will have a 1.0 scale for now

Signed-off-by: nvsickle <nvsickle@amazon.com>
This commit is contained in:
nvsickle
2021-06-21 20:56:40 -07:00
parent da529edfb5
commit 6b76eceb1f
10 changed files with 86 additions and 2 deletions
@@ -540,4 +540,9 @@ namespace AtomToolsFramework
{
// The RenderViewportWidget does not currently support full screen.
}
float RenderViewportWidget::GetDpiScaleFactor() const
{
return aznumeric_cast<float>(devicePixelRatioF());
}
} //namespace AtomToolsFramework