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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user